Re: [go-nuts] Go goes crazy on math.Sin()

2017-07-31 Thread Ian Lance Taylor
On Sun, Jul 30, 2017 at 9:58 PM, peterGo wrote: > > Is this just a variation of https://github.com/golang/go/issues/6794 ? Thanks for the pointer. It could be. It's not the same code, but it's similar. Ian -- You received this message because you are subscribed to the Google Groups "golang-

Re: [go-nuts] Go goes crazy on math.Sin()

2017-07-30 Thread peterGo
Ian, Is this just a variation of https://github.com/golang/go/issues/6794 ? Peter On Sunday, July 30, 2017 at 10:22:54 PM UTC-4, Ian Lance Taylor wrote: > > On Sun, Jul 30, 2017 at 10:40 AM, > > wrote: > > > > I just ran this code on my pc: > > > > package main > > > > import ( > >"

Re: [go-nuts] Go goes crazy on math.Sin()

2017-07-30 Thread Ian Lance Taylor
On Sun, Jul 30, 2017 at 10:40 AM, wrote: > > 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

[go-nuts] Go goes crazy on math.Sin()

2017-07-30 Thread mhipo1364
Hey guys 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 ??? -- You received this message because you ar