You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to show at least 2 digit precision, but more if necessary?
The use case is money. In most cases I need just 2 decimal points. In some financial scenarios, I need more precision (fraction of cents).
For example:
32 should show as $32.00
32.004 should show as $32.004
32.12 should show as $32.12
32.1234567 should show as $32.123456 (given a 6 digit decimal precision)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to show at least 2 digit precision, but more if necessary?
The use case is money. In most cases I need just 2 decimal points. In some financial scenarios, I need more precision (fraction of cents).
For example:
$32.00
$32.004
$32.12
$32.123456
(given a 6 digit decimal precision)Beta Was this translation helpful? Give feedback.
All reactions