jquery-maskmoney icon indicating copy to clipboard operation
jquery-maskmoney copied to clipboard

Is there any way to force whole-dollar values?

Open Eclipse-Computing opened this issue 6 years ago • 1 comments

Just curious if there was a way to force whole-dollar values only, to not have any cents or sub-units.

Looked throughout the documentation and I could not find anything that specified this.

My issue is that the input I am using gets saved as a straight integer to the database, because the input is dealing with large dollar values. As such, cents are superfluous, and therefore they cannot be in the mask/input itself otherwise they seriously muck up the data input into the DB. I could always cast the value to a straight integer, but that then gives a UI issue to the user, where they see cents where none are applicable and none will be saved.

Eclipse-Computing avatar Apr 19 '18 19:04 Eclipse-Computing

Did you ever figure this out?

alex-taffe avatar Nov 20 '19 15:11 alex-taffe