Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Rounding values upwards on an arbitrary basis

by Abigail-II (Bishop)
on Jul 02, 2003 at 21:12 UTC ( [id://270963]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Rounding values upwards on an arbitrary basis
in thread Rounding values upwards on an arbitrary basis

Yeah, well you could solve that by adding something like:
$new += $frac if int ($_ / $frac) == ceil ($_ / $frac);

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://270963]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-23 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found