Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: sprintf rounding convention

by Anonymous Monk
on Oct 30, 2009 at 19:23 UTC ( [id://804208]=note: print w/replies, xml ) Need Help??


in reply to sprintf rounding convention

$ perl -le" printf qq!%.2f\n!, shift while @ARGV " 0.335 0.34 1.335 1. +33 0.34 0.34 1.33 1.33
Using (s)printf() What Every Computer Scientist Should Know About Floating-Point Arithmetic

Log In?
Username:
Password:

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

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

    No recent polls found