Re: Rounding up to the next .5
- From: Justin C <justin.0704@xxxxxxxxxxxxxx>
- Date: Sun, 29 Apr 2007 15:38:48 -0000
In article <slrnf37pe4.d3t.tadmc@xxxxxxxxxxxxxxxxxx>, Tad McClellan wrote:
Justin C <justin.0704@xxxxxxxxxxxxxx> wrote:
In article <AIKYh.2898$r77.978@trndny08>, Jürgen Exner wrote:
Justin C wrote:
I'm trying to round weights (with up to two decimal places) up to the
next half kilo (unless the weight is an exact or .5 kilo already).
For one I am pretty sure there are modules on CPAN that do floor() and
ceiling() functions.
There are that, and, IIRC (from today's Googling for a round() function)
they are part of POSIX, and therefore (if my understanding is correct)
already installed.
Trouble is, I don't know what those are/do, perldoc wasn't much help,
I suppose they're mathematical functions, I didn't get that far with my
education and so didn't understand,
http://en.wikipedia.org/wiki/Ceiling_function
Thanks. I understand most of what that document says, the notation does
my head in though
Justin.
--
Justin C, by the sea.
.
- References:
- Rounding up to the next .5
- From: Justin C
- Re: Rounding up to the next .5
- From: Jürgen Exner
- Re: Rounding up to the next .5
- From: Justin C
- Re: Rounding up to the next .5
- From: Tad McClellan
- Rounding up to the next .5
- Prev by Date: a problem about function returning point
- Next by Date: Re: a problem about function returning point
- Previous by thread: Re: Rounding up to the next .5
- Next by thread: Re: Rounding up to the next .5
- Index(es):
Relevant Pages
|
|