We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Numeric Text box auto rounding off/up when certain digits are met.

Hello I have an issue with Numeric Textbox it seems that it is auto rounding up when certain digits are met.

I have set it's max property to 999999999999.9999, because I need only to accept up to that digits. 

But when I input it in the numeric textbox, when I focused out the value is rounded up which is 1000000000000. 

I want to disable that kind of behavior. Please help me ,thanks.

1 Reply

CI Christopher Issac Sunder K Syncfusion Team January 16, 2019 06:48 AM UTC

Hi Robin,  

Thank you for contacting Syncfusion support. 
   
Our NumericTextBox component uses Javascript Number Object, which loses decimals after 16th digit, so it behaves like normal TextBox. So, when you set value over 16 digits, it gets rounded off. To overcome this limitation, define the max value of the Numeric Textbox less than 16 digits number. You can find more information about Number Objects in the following documentation,   
   

Please let us know if you require any further assistance.  

Thanks,
Christo 


Loader.
Up arrow icon