Go math package has invalid result

Viewed 111

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

1 Answers
Related