On Wed, Nov 5, 2014 at 2:06 AM, K Leo <[email protected]> wrote: > julia> 2*10.97 + 23.9985 > 45.938500000000005 > > julia> 2*10.97 + 23.9985 == 45.938500000000005 > true > > Amazing. I never expected this. Is floating point comparison going to be > guaranteed?
What's shocking about this? What do you mean by floating point comparison being guaranteed? We always print individual floating-point numbers with enough digits to reconstruct their exact value (moreover, they are always printed with the minimal number of digits necessary to do so). Floating-point arrays are printed truncated.
