[kw-pm] sprintf Issue
Robert Pike
roberthpike at yahoo.com
Thu Jan 7 12:20:17 PST 2010
Is there a limitation on trying to format numbers using sprintf? I'm trying to format a number like 10005000035, so as to have leading zeros up to a total length of 20 such as this :
print "Formatted : " . sprintf("%020d", $processId); # processId is equal to 10005000035
Is there a problem with this approach or a better way of doing it? Thanks in advance for any feedback.
__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
More information about the kw-pm
mailing list