how to make number mask use rounding instead removing digit #755
Unanswered
laptopmutia
asked this question in
Q&A
Replies: 1 comment
-
I'm in the same case as you. The only difference I have is I'm using directly the number instead of the input element so I can manually round the digits |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
apparently this code just removing the digit that is more than the scale allow instead rounding it
so with config in above field that has
value="177.688"
will have masked value as"177.68"
any guidance how to make it so the masked value is
"177.69"
instead?edit: is it because my assumption about removing instead rounding correct?
or is it because weird javascript behavior about rounding and math?
Beta Was this translation helpful? Give feedback.
All reactions