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 specification says:
"It is an error if the constant value cannot be accurately represented as a value
of the respective type."
This is true for conversion to integral types, but not to floating point,
otherwise:
var f float32 = math.Pi
would fail because math.Pi is much more accurate than can be
represented by a 32-bit float.