-
Notifications
You must be signed in to change notification settings - Fork 150
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
NewFromFloat trouble #121
Comments
@jasonharrison, you could use decimal to fix this problem |
I have the same issue.
@vivl4725 |
The problem is that the binary representation of 1.15 is closer to 114.99999999999999 This can solved by adding a small "epsilon" value to the parsed value. |
Why is the float64 value equal to 1.15 created in the money type as 1.14?
The link below shows an example of the supposed error:
https://go.dev/play/p/Z64XrP8LdTc
The text was updated successfully, but these errors were encountered: