We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
at least go1.4, go1.6, go tip:
https://play.golang.org/p/tArTXnDSma
package main import "fmt" func main() { fmt.Printf("%06v\n",[]interface{}{-10.0,10}) fmt.Printf("%06v\n",[]interface{}{-10,10}) }
Output:
[-00010 00010] [-00010 000010]
They should be the same. However formatFloat alters the width field and does not restore its original value.
Discovered this while writing test cases for a float format cleanup. Which failed for the current go but worked for my new code.
Will submit a separate fix for this referencing this issue first.
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/20179 mentions this issue.
Sorry, something went wrong.
7837418
No branches or pull requests
at least go1.4, go1.6, go tip:
https://play.golang.org/p/tArTXnDSma
Output:
They should be the same.
However formatFloat alters the width field and does not restore its original value.
Discovered this while writing test cases for a float format cleanup.
Which failed for the current go but worked for my new code.
Will submit a separate fix for this referencing this issue first.
The text was updated successfully, but these errors were encountered: