Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 wandering the Monastery: (5)
As of 2024-03-29 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found