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
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
1.compile the following source code with 8g:
// start of file
package main
import "math";
var value float64 = math.MaxFloat64;
// end of file
What is the expected output? What do you see instead?
expected: successful compilation, ie: constant MaxFloat64 can be assigned
to a Float64 variable.
instead:
maxfloat64.go:4: constant 1.79769e+308 overflows float64
What is your $GOOS? $GOARCH?
linux/386
Which revision are you sync'ed to? (hg log -l 1)
changeset: 4037:cd0140653802
tag: tip
user: David Titarenco <david.titarenco@gmail.com>
date: Fri Nov 13 18:06:47 2009 -0800
summary: Created new Conn.Flush() public method so the fd pipeline can
be drained arbitrarily by the user.
Please provide any additional information below.
The following does not work either:
var value float64 = float64(math.MaxFloat64);
But the following works:
var value float64 = 1.7976931348623157e+308;
or:
var value float64 = math.MinFloat64;
The text was updated successfully, but these errors were encountered:
by bertrand.marlier:
The text was updated successfully, but these errors were encountered: