Prepending to fixed length
Prepending to fixed length
- Subject: Prepending to fixed length
- From: Trygve Inda <email@hidden>
- Date: Tue, 18 Jul 2006 19:43:55 +0000
- Thread-topic: Prepending to fixed length
I have an int that I want converted into a string but I want it prefixed
with zeros to a fixed length. So.
1 = 00001
2 = 00002
534 = 00534
Basically the opposite of
stringByPaddingToLength:withString:startingAtIndex:
Is there a method to do this directly?
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden