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

math/big: Rat.FloatString does not document what rounding method it uses #11523

Closed
tv42 opened this issue Jul 2, 2015 · 2 comments
Closed

math/big: Rat.FloatString does not document what rounding method it uses #11523

tv42 opened this issue Jul 2, 2015 · 2 comments
Milestone

Comments

@tv42
Copy link

tv42 commented Jul 2, 2015

This came up while somebody was talking about using it for currency math.

https://en.wikipedia.org/wiki/Rounding#Tie-breaking

@griesemer
Copy link
Contributor

It's rounding to nearest even but it should be documented.

@robpike robpike added this to the Go1.5 milestone Jul 3, 2015
@griesemer
Copy link
Contributor

This was fixed a while back. The (now deleted) additional CL was incorrectly referring to this issue.

@golang golang locked and limited conversation to collaborators Aug 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants