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).Text and (*Float).Format don't support 'g' with negative precision #10991

Closed
griesemer opened this issue May 29, 2015 · 1 comment

Comments

@griesemer
Copy link
Contributor

In analogy to the strconv.FormatFloat and fmt.Printf functions using the 'g' format, (_Float).Text and (_Float).Format should support the 'g' format with a negative precision (== smallest number of digits necessary to identify the floating-point value uniquely).

The implementation is in (*Float).Text.

Once fixed, the work-around (to avoid a panic) in (*Float).Format can be removed.

@griesemer griesemer self-assigned this May 29, 2015
@griesemer griesemer added this to the Go1.5Maybe milestone May 29, 2015
@rsc rsc modified the milestones: Go1.6Early, Go1.5Maybe Jul 15, 2015
@gopherbot
Copy link

CL https://golang.org/cl/14850 mentions this issue.

@golang golang locked and limited conversation to collaborators Sep 23, 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

3 participants