Skip to content
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

Make to_string_with_precision respect precision argument for a_value 0 #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MatthewRock
Copy link

When using to_string_with_precision for a value close enough to 0, the return value is "0.0000" no matter what the precision is set. This PR changes the behavior to use the same code path for both 0 and non-0 values, only with a different argument. This makes the precision be respected in case of argument roughly equal to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant