[go-nuts] Re: Rational number to floating point

2016-09-21 Thread Brendan Tracey
Or if you have them as actual constants, 355.0 / 113 On Monday, September 19, 2016 at 12:07:13 PM UTC-6, Hotei wrote: > > I think you'll need something like x := float(355) / float(113) - where > float is either float32 or float64 depending on your preferred trade-off > for accuracy vs bytes

[go-nuts] Re: Rational number to floating point

2016-09-19 Thread Hotei
I think you'll need something like x := float(355) / float(113) - where float is either float32 or float64 depending on your preferred trade-off for accuracy vs bytes required per number. On Monday, September 19, 2016 at 12:38:12 PM UTC-4, Mark Longtin wrote: > > Hey guys, > > I'm new to Go