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?
package main
import (
"fmt"
"math"
)
func main() {
var y, z float64
y = -1.0e3
z = math.Exp(y)
fmt.Printf("y: %g, z: %g\n", y, z)
}
What is the expected output?
y: -1000, z: 0
What do you see instead?
y: -1000, z: -1.6403979450983092e+182
What is your $GOOS? $GOARCH?
GOARCH=amd64
GOOS=darwin
Which revision are you using? (hg identify)
5992bf56aa72 release.2010-07-14/release
Please provide any additional information below.
I do not see this problem on GOOS = linux, GOARCH = 386
I do not see this problem if I make a local copy of go/src/pkg/math/exp.go and call it
instead of math.Exp (see the attached file)
by bcfabien:
Attachments:
The text was updated successfully, but these errors were encountered: