Skip to content

math/big: Float is not big #62127

@willfaught

Description

@willfaught

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions