Skip to content

runtime: println should handle signed zero correctly #6899

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

Closed
lexprfuncall opened this issue Dec 6, 2013 · 1 comment
Closed

runtime: println should handle signed zero correctly #6899

lexprfuncall opened this issue Dec 6, 2013 · 1 comment

Comments

@lexprfuncall
Copy link

println and fmt.Println have a different opinion about the sign of zero in the following
example

http://play.golang.org/p/voOU-eM1gY

The root cause is runtime.printfloat assuming the sign of zero is positive. 
Fortunately, only two lines of code are sufficient to resolve this issue.

https://golang.org/cl/38120043
@lexprfuncall
Copy link
Author

Comment 1:

This issue was closed by revision f574726.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
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

2 participants