in reply to Re^9: test fails on 64bit uselongdouble Perl
in thread test fails on 64bit uselongdouble Perl
You do a calculation, and the result is an integer $n.
Number $n. You haven't rounded to an integer yet.
$n = 5.5; $eps = -0.00000000000001; printf "%.0f\n", $n; # 6 expected printf "%.0f\n", $n+$eps; # 5 get
If his calculations are suppose to always give integers before rounding, then yes, there's no problem.
|
|---|