Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

(tye)Re: Using (s)printf()

by tye (Cardinal)
on Apr 23, 2001 at 23:36 UTC ( #74832=note: print w/ replies, xml ) Need Help??


in reply to Re: Using (s)printf()
in thread Using (s)printf()

Quoting the article you like so well:

%g same as %e or %f, whichever printf thinks is best.
then note that
printf "%g", 0
produces simply "0" so 'printf thinks "0" is best'. (:

        - tye (but my friends call me "Tye")


Comment on (tye)Re: Using (s)printf()
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (20)
As of 2015-07-29 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (266 votes), past polls