Re: Rounding up to the next .5



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


--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas
.



Relevant Pages

  • Re: Rounding up to the next .5
    ... next half kilo (unless the weight is an exact or .5 kilo already). ... ceiling() functions. ... There are that, and, IIRC function) ...
    (comp.lang.perl.misc)
  • File name in minifilter
    ... I know it is a very common topic in the internet resources, ... After some googling, I found the ... Which one can retrieve the file name? ... Kilo ...
    (microsoft.public.development.device.drivers)