Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: sprintf rounding convention

by ikegami (Patriarch)
on Oct 30, 2009 at 22:04 UTC ( [id://804225]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    nv += 0.5;
    uv = (UV)nv;
    if (uv & 1 && uv == nv)
        uv--;                       /* Round to even */
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-05-28 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found