asual/jquery-format

Incorrectly rounding up at 3 decimals

lamarant opened this issue · 0 comments

Great plugin...I'm not sure if you;re still supporting this but in using the plugin I found an issue with rounding. See my fiddle here:

http://jsfiddle.net/lamarant/DT7wJ/

The issue comes into play when you have a value like 0.0098 and you set the format to 0.000. The formatted value is incorrectly displayed as .001, instead of .010. This seems to happen on values in the thousandths and beyond.

I'll try to fork a fix but figured I'd bring it to your attention.