Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Zero Padding to the Right of the Decimal

by jmcnamara (Monsignor)
on Jan 15, 2004 at 16:19 UTC ( [id://321599]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $i=sprintf("%3.2f",$i);
    
  2. or download this
        $i=$i+0.1;
    
  3. or download this
        printf "%3.2f\n", $i;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-29 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found