Reputation: 736
I have noticed that in a NumericTextBox when i add 18 or more digits in the field the numbers are changed.
For example when add the number "11111111111111111" the number is changed automatically to "11111111111111112" .
I have noticed the same behavior also in the Kendo demo web page. http://demos.kendoui.com/web/numerictextbox/index.html.
Why is this happening? Is there any way to fix that?
Upvotes: 1
Views: 759
Reputation: 40897
Your Number
is too large.
all the positive and negative integers whose magnitude is no greater than 2^53 are representable in the Number type (indeed, the integer 0 has two representations, +0 and −0).
Read ECMA Section 8.5 - Numbers for more information.
Upvotes: 2