On Mon, Apr 15, 2019 at 11:19 AM Miki Tebeka <miki.teb...@gmail.com> wrote:

> Can anyone explain the below?

a and b have 64b precision and they are assigned the same value, after that
value is rounded to the lower precision.

1.1*1.1 and 1.21 are untyped constants and have much higher precision at
which they are not equal. (I haven't checked, but binary log of 1.1 is not
representable in finite bits so the square of 1.1 != 1.21.)

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