in reply to
int($x) gives strange result
If you just want to cut off decimal places you can use the
sprintf
function:
$x = sprintf('%.2f', $x);
[download]
Comment on
Re: int($x) gives strange result
Select
or
Download
Code
In Section
Seekers of Perl Wisdom