in reply to Rounding off numbers
I always liked
which rounds things off nicely.$int = sprintf "%.0f", $float;
-- Tanalis
#include www.liquidfusion.org.uk
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Rounding off numbers
by bulrush (Scribe) on Jan 25, 2016 at 14:22 UTC | |
by choroba (Cardinal) on Jan 25, 2016 at 14:28 UTC |
In Section
Seekers of Perl Wisdom