I just ran this code on my computer:
package main import ( "fmt" "math" ) func main() { const ali = 4e20 fmt.Println(math.Sin(ali)) }
and got this result:
1.3471173831553043e+258
Why is the result of sin greater than 1?
Python and some other languages have the correct result
math go
Moe far
source share