You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec leaves the behavior open since x := -1e10000 is equivalent to var x =
float64(-1e10000) :
"In all non-constant conversions involving floating-point or complex values, if the
result type cannot represent the value the conversion succeeds but the result value is
implementation-dependent."
For the reference, gccgo produces -0 in this case.
rsc
changed the title
go.tools/go/types: negative float constants close to 0 should become -0 floats when converting to IEEE and underflow occurs
x/tools/go/types: negative float constants close to 0 should become -0 floats when converting to IEEE and underflow occurs
Apr 14, 2015
griesemer
changed the title
x/tools/go/types: negative float constants close to 0 should become -0 floats when converting to IEEE and underflow occurs
go/types: negative float constants close to 0 should become -0 floats when converting to IEEE and underflow occurs
Jul 31, 2015
The text was updated successfully, but these errors were encountered: