The NumericTextBox control rounds off value based on format

Hi Team,

Suppose I have numeric control with format="#.##".
If I have existing values such as 99.999 it automatically rounds it off and makes it 100

How can I prevent that it should not round off the values but just truncate it if not coming as per format?

Thanks
Tuariq

1 Reply

SP Sureshkumar P Syncfusion Team May 14, 2020 02:43 AM UTC

Hi Tuariq, 
 
Greetings from Syncfusion support.  
 
Based on your shared information with custom format property. the 2nd fraction value roundoff based on third fraction value. In your case the value will roundoff to 100. This is the behavior of our component. We cannot restrict the roundoff the fraction value and truncate the fraction value. 
 
We have created the sample based on your scenario. Please find the sample here: https://stackblitz.com/edit/angular-bqmtpa-wy43dm?file=app.component.html  
 
Regards, 
Sureshkumar P 


Loader.
Up arrow icon