On Thu, Dec 1, 2016 at 1:53 AM Raz Varren <russ.vanderw...@gmail.com> wrote:

> I've stumbled across an issue with some float64 numbers, where they get
rounded up as soon as they are assigned to a variable.

A float64 variable has only a limited, finite precision, so rounding an
ideal value when materializing it to actual CPU assignment assembler
instruction is the only option available. If in need of floating point
operations of arbitrary precision, please see the math/big package.


-- 

-j

-- 
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.

Reply via email to