MrNobo1024 has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (math)
int($num) rounds a number down, but there dosen't seem to be any function to round a number up. int($num + 1) works ok for fractional values, but dosen't work right for integers. How can I round numbers up in a way that works for all numbers?
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I round up a number?⭐
by Anonymous Monk on Mar 25, 2001 at 08:08 UTC | |
by I0 (Priest) on Mar 25, 2001 at 15:31 UTC | |
by Anonymous Monk on Feb 21, 2016 at 20:38 UTC | |
Re: How do I round up a number?⭐
by damian1301 (Curate) on Mar 25, 2001 at 10:28 UTC | |
Re: How do I round up a number?
by powerman (Friar) on Apr 23, 2002 at 11:48 UTC | |
Re: How do I round up a number?
by Tiefling (Monk) on Jun 11, 2001 at 18:30 UTC | |
by I0 (Priest) on Jun 11, 2001 at 20:02 UTC | |
Re: How do I round up a number?
by Daddio (Chaplain) on Apr 01, 2001 at 19:53 UTC | |
Re: How do I round up a number?
by ar0n (Priest) on Apr 01, 2001 at 22:17 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom