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

Re: Help with Numbers..Please

by ph0enix (Friar)
on Apr 24, 2003 at 10:04 UTC ( [id://252823]=note: print w/replies, xml ) Need Help??


in reply to Help with Numbers..Please

Numerical value of your number is 1 so the 'droping zeros' is correct behaviour. Try printf or sprintf for formating your outputs.
my $number = 1; printf '%06d', $number;
or get it back into $number variable

$number = sprintf('%06d', $number);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-26 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found