The given demo uses a very old version of Kendo UI. Using the latest official one (demo for reference), the widget works as with decimals up to 16 digits. I noticed, however, that if the number has 6-7 digits and the last one is bigger or equal to 5 the value is incorrectly rounded. This is a bug, which will be fixed (you can follow the Github issue mentioned in this thread).
What causes this behavior?
NumericTextBox widget needs to round numbers based on the decimals option or format value. We use exponential calculation
, which is the most accurate found until now. This approach can, however, reach some of Number limitations and hence the value becomes incorrectly rounded. The real problem is related with the way how the floating number
is implemented in computing world.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI