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
floatValue is 0 afterDecimal.length is 2 and scale is 2
so floatValueStr returns floatValue.toString() which returns 0
However, floatValueStr should probably return 0.00
@codypearce Just a quick work around until the issue is being investigated. You can use the fixedDecimalScale prop to match the leading zeros. Here's a sample Codesandbox link: https://codesandbox.io/s/zealous-oskar-wjnqh
From the document for fixedDecimalScale
If true it add 0s to match given decimalScale
I will get back to you with an update on the issue resolution. Thank you for your patience.
Describe the issue and the actual behavior
Values in the app I am working on are passed like this '100.00', with a
decimalScale
of 2, andisNumericString
, like this.The result in the app
Describe the expected behavior
Since it was passed in as
100.00
it should display as100.00
.The changes in #501 appear to be the issue.
floatValue
is0
afterDecimal.length
is 2 andscale
is 2so
floatValueStr
returnsfloatValue.toString()
which returns0
However,
floatValueStr
should probably return0.00
Provide a CodeSandbox link illustrating the issue
https://codesandbox.io/s/vigilant-shamir-dk4u9?file=/src/App.js
Provide steps to reproduce this issue
See codesandbox
Please check the browsers where the issue is seen
The text was updated successfully, but these errors were encountered: