Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Help with Numbers..Please

by Anonymous Monk
on Apr 24, 2003 at 14:52 UTC ( [id://252914]=note: print w/replies, xml ) Need Help??


in reply to Help with Numbers..Please

Hi Gareth, Use regular numbers to do your calculation and sprintf back into the value that you need. See code below. #!/usr/bin/perl for (0..10) { my $value = sprintf("%.5d",$_); print $value,"\n"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2025-07-20 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.