in reply to Re^5: test fails on 64bit uselongdouble Perl
in thread test fails on 64bit uselongdouble Perl

$ perl -e'printf "%.0f\n", $_ for 5.4999999999, 5.5' 5 6

I don't get what's the problem with the above. The output is what I would expect.

Replies are listed 'Best First'.
Re^7: test fails on 64bit uselongdouble Perl
by ikegami (Patriarch) on Oct 30, 2009 at 14:48 UTC

    The point is that a infinitely small floating point error can change the result by 1.0