Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: OT: Integer rounding?

by Ryszard (Priest)
on Mar 23, 2004 at 19:13 UTC ( [id://339125]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    dataless <dataless767@hotmail.com> wrote in article
    <a8liar$m91$1@helle.btinternet.com>...
    ...
    
    -- 
    Bringing you today's technology tomorrow...
    
  2. or download this
    
    #!/usr/bin/perl -w
    ...
    $\="\n";
    
    print int(($number/$prec)+.5)*$prec;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found