-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Question: A simple way to round decimal? #3
Comments
Is this over the wire? If you have JSON number (string) If it is already parsed number output of If it is Also, if it is |
I thought that decimal rounding is a complex computer science problem and should be solved by professionals... ;) But if you tell me which direction to dig, I can try to write a patch. |
haha. yeah let's improve rounding for this pkg! Can be in separate PRs:
For all of these need fuzz test (with couple unit tests or scenarios). Thanks for interest! 💪🏻 |
Thanks for the library!
Can you please tell me how to round decimal from 4 to 2 decimal places?
For example 1234.4567 -> 1234.46.
The text was updated successfully, but these errors were encountered: