Numeric / price - Accurate JS mode

Last updated Aug 30 2019

Browsers are a funny thing, they sometimes differ in the way they render information and we don’t like that. So when we come across such behaviours, where the outcome can be different we usually like to set our own behaviour to make things consistent.
An example for this is the rendering of decimal numbers. We saw that if you set your numeric/price field to decimal with 2 digits after the point and the filler entered a number such as: 3.2, the browser, instead of changing it to 3.20 changed it to 3.19.
This is why we’ve added a new property to our Numeric and Price elements, called: Accurate JS mode.
Watch how to use the Accurate JS mode for decimal numbers



Enjoy!


CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.