Well, I'm not sure what the intention was, but this fact is true: for floating-point values x and y of the same type, x == y is true if and only if string(x) == string(y).
On Wed, Nov 5, 2014 at 5:36 AM, Steven G. Johnson <stevenj....@gmail.com> wrote: > > > On Tuesday, November 4, 2014 8:44:55 PM UTC-5, Stefan Karpinski wrote: >> >> The == check works exactly the same way in Julia as it does in other >> languages. It's the printing of the numbers that's more precise. >> > > Maybe K. Leo was asking whether Julia always prints out enough decimal > digits from x::Float64 to guarantee that the original floating-point > value x will be reconstructed from this decimal literal. I think the > answer is yes? >