New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
precisionFromString update #14206
precisionFromString update #14206
Conversation
all methods / langs are ready now to be merged. |
@ttodua the edits in this PR broke the build, can you take a look? |
|
return str.length * -1 | ||
} | ||
// default strings like '0.0001' | ||
const split = str.replace (/0+$/g, '').split ('.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this 101th and next line was not touched.
d18b7e0
to
8589c52
Compare
8589c52
to
f33592a
Compare
@carlosmiei fixed. please review now. |
LGTM ✅ |
base function
precisionFromString
works with such numbers'0.001'
but not with'1e-3'
.so, this update is needed