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: Support precision of -1 in Rat.FloatString #47911

Open
Thomasdezeeuw opened this issue Aug 23, 2021 · 1 comment
Open

math/big: Support precision of -1 in Rat.FloatString #47911

Thomasdezeeuw opened this issue Aug 23, 2021 · 1 comment
Milestone

Comments

@Thomasdezeeuw
Copy link
Contributor

@Thomasdezeeuw Thomasdezeeuw commented Aug 23, 2021

The strconv.FormatFloat function accepts a special precision of -1 to mean to use the smallest number of digits necessary such that ParseFloat will return float exactly. This is a feature request to accept the same for math/big.Rat.FloatString.

@gopherbot
Copy link

@gopherbot gopherbot commented Aug 24, 2021

Change https://golang.org/cl/344729 mentions this issue: math/big: Support precision of -1 in Rat.FloatString

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants