Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 wandering the Monastery: (4)
As of 2024-04-18 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found