You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
andygrove
changed the title
I would like to round rather than trucate when casting f64 to decimal
I would like to round rather than truncate when casting f64 to decimal
Nov 2, 2022
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
If I convert
0.06999999
to a decimal with scale 2 I would like to get0.07
rather than0.06
This fails with:
Describe the solution you'd like
Provide an option for round vs truncate?
Default to round?
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: