precision and scale suppport#1
Conversation
… right of the decimal point
… have. this can be used with scale to limit field values
There was a problem hiding this comment.
Sure! I already did, take a look...
There was a problem hiding this comment.
I find the terms "scale" and "precision" to be fairly confusing. Can we rename them like
"precision" -> "digits"
"scale" -> "fractionalDigits"
(FYI you might find this question interesting: http://math.stackexchange.com/questions/64042/what-are-the-numbers-before-and-after-the-decimal-point-referred-to-in-mathemati)
There was a problem hiding this comment.
I think that scale and precision are rights.
Take a look at concept used in rails or databases for example:
http://millarian.com/programming/ruby-on-rails/precision-and-scale-for-ruby-on-rails-migrations/
http://msdn.microsoft.com/en-us/library/ms190476.aspx
http://stackoverflow.com/questions/5689369/what-is-the-difference-between-precision-and-scale-in-oracle
|
Sorry for taking so long to review this. It looks great now! Nice job! |
precision and scale suppport

Renamed precision to scale, that represents the number of digits to the right of decimal point.
Added support to precision that represents the total number of digits.
eg:
$(".field").numeric({ precision: 4, scale: 2 }); //99.99