Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1490
large decimal values in igNumericEditor?
posted

It appears that igNumericEditor is limited to the "float" data type in javascript and because of this it can lose large numbers that a user may type in. 

For example, if I create an igNumericEditor with maxValue of "99999999999999.99999" and then enter the value "99999999999999.99999" into the editor and tab out, it changes the value to "100000000000000.00000". This seems consistent with what the parseFloat() javascript function would do, but is there a way around this? 

You can see the example I've attached. Just enter in the value "99999999999999.99999" in the editor and tab out.

Is there a way around this? how should larger numbers like this be handled?

igNumericEditor.zip