in reply to Re: int($x) gives strange result
in thread int($x) gives strange result
That's misleading. floor and ceil suffer the same problem as int in this area.
$ perl -MPOSIX -wle'$x = 6.725/0.025; print for $x, int $x, floor $x' 269 268 268
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: int($x) gives strange result
by hossman (Prior) on Aug 31, 2009 at 05:53 UTC | |
by ikegami (Patriarch) on Aug 31, 2009 at 16:20 UTC | |
Re^3: int($x) gives strange result
by Anonymous Monk on Aug 25, 2009 at 00:29 UTC | |
by ikegami (Patriarch) on Aug 25, 2009 at 01:43 UTC | |
by Anonymous Monk on Aug 25, 2009 at 02:03 UTC | |
by ikegami (Patriarch) on Aug 25, 2009 at 04:52 UTC | |
by Anonymous Monk on Aug 25, 2009 at 06:06 UTC | |
|
In Section
Seekers of Perl Wisdom