[NumberInput] allowRounded when it is not necessary to round and have the exact value in decimals #7234
CesarDv1421
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the NumberInput component by default rounds the next decimal numerical value when it is close to 5, example:
I have a number with many decimals, and when applying the "decimalScale={6}" prop it rounds the following values:
The ideal would be to have a new props called "allowRounded" that allows me to choose whether I need to round to the next value or not, since there may be cases where even if the value is limited to a number of decimal places, it is necessary to have an exact value or not.
Beta Was this translation helpful? Give feedback.
All reactions