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
I have a int slice with a value 155250 and multiply it by another float32 slice variable (519.0) using the float32(int) function. The result was 80574752, instead of 80574750.
The error does not show when converting to float64 variable. The issue must be in the float32() function
What did you expect to see?
80574750
What did you see instead?
80574752
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I have not tested it
What operating system and processor architecture are you using (
go env
)?Mac OS Catalina
go env
OutputWhat did you do?
I have a int slice with a value 155250 and multiply it by another float32 slice variable (519.0) using the float32(int) function. The result was 80574752, instead of 80574750.
The error does not show when converting to float64 variable. The issue must be in the float32() function
What did you expect to see?
80574750
What did you see instead?
80574752
The text was updated successfully, but these errors were encountered: