We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A few releases Decimal was using Doubles to perform toStringAsExponential:
toStringAsExponential
toDouble().toStringAsExponential(fractionDigits);
This approach seems to use the normalized scientific notation, ie: given dec('9.9999e+7').toStringAsExponential(2) it would output 1.00e+8.
With the current implementation that same input will return 10.00e+7.
The text was updated successfully, but these errors were encountered:
fix(#74): use normalized notation on toStringAsExponential (#73)
d4cc54c
* refactor: use normalized notation on toStringAsExponential * remove unnecessary round * clean up Co-authored-by: Alexandre Ardhuin <[email protected]>
Fix available in 2.2.0
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
A few releases Decimal was using Doubles to perform
toStringAsExponential
:This approach seems to use the normalized scientific notation, ie: given dec('9.9999e+7').toStringAsExponential(2) it would output 1.00e+8.
With the current implementation that same input will return 10.00e+7.
The text was updated successfully, but these errors were encountered: