I just ran this code on my pc:
package main
import (
"fmt"
"math"
)
func main() {
const ali = 4e20
fmt.Println(math.Sin(ali))
}
and got this result:
1.3471173831553043e+258
Why Sin result goes more than 1?
Python and some other languages have correct result
It seems like it's just an issue with the implementation, if the input is more than 2**49 it causes issues. Found a really old issue here