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: Float is not big #62127

Closed
willfaught opened this issue Aug 18, 2023 · 1 comment
Closed

math/big: Float is not big #62127

willfaught opened this issue Aug 18, 2023 · 1 comment

Comments

@willfaught
Copy link
Contributor

What did you do?

https://pkg.go.dev/math/big#Float

What did you expect to see?

Arbitrary-precision fixed-point decimal numbers

What did you see instead?

A nonzero finite Float represents a multi-precision floating point number

I almost shot myself in the foot with this one.

Please add a huge disclaimer in the Float doc that says it's not big:

BEWARE! THIS IS NOT ARBITRARY PRECISION LIKE INT AND RAT! A nonzero finite Float represents a multi-precision floating point number

@seankhliao
Copy link
Member

the following paragraphs describe the levels of precision that Float provides, screaming notice is not in the standard style and should not be necessary.

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2023
@golang golang locked and limited conversation to collaborators Aug 17, 2024
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

3 participants