[go-nuts] Rational number to floating point
Thanks for the responses. It turns out that in the IOS version the "float" function is implemented and works as expected- it's just not documented in the help file. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] Rational number to floating point
float64(355)/113 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[go-nuts] Rational number to floating point
Hey guys, I'm new to Go - through the Ivy app on IOS- so I have a newbie question. What's the easiest way to cast or convert a rational number to its floating point representation? EG, looking for something like this: *float 355/113*3.14159292035 I could do something inelegant like *floor .5+1e11* 355/113*314159292035 but was hoping there would be a native function for this. Thanks -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.