in reply to Decimal rounding

my $num = sprintf('%.2f', '490.408163265306');

perldoc -f sprintf for all the dirty details.

If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.