Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Zero Padding to the Right of the Decimal

by Anonymous Monk
on Jan 15, 2004 at 16:09 UTC ( [id://321592]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $i=0;
    while ($i <=100){
    ...
        $i=$i+0.01;
        print "$i\n";
    }
    
  2. or download this
    99.9
    99.91
    ...
    99.98
    99.99
    100
    
  3. or download this
    99.90
    99.91
    ...
    99.98
    99.99
    100.00
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-19 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found