math: math.Mod(Exp(63.5)*10000.0, 100.0) return different values between C exp() #67662
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.22.3 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
a.go
b.go
What did you see happen?
We expected the results of the
exp()
function from the C library and Go'smath.Exp()
to be the same on arm64/darwin. However, they were not.Python result on arm64/darwin was below.
What did you expect to see?
I think that when the OS and architecture are different, the results of functions can vary. However, at the very least, the consistency of the results of functions in the 'math' package should be guaranteed, regardless of the OS or architecture.
run above codes on "arm64/darwin"
The text was updated successfully, but these errors were encountered: