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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





141986 Jan 14,2019 05:22 AM UTC Jan 16,2019 06:48 AM UTC JavaScript - EJ 2 1
Tags: NumericTextBox
Robin Leo Zapata Lamatao
Asked On January 14, 2019 05:22 AM UTC

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.

Christopher Issac Sunder K [Syncfusion]
Replied On 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.  



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon