KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following variable: NSNumber *consumption = [dict objectForKey:@"con"]; Which returns 42. How can I pad this number to 10 digits on the left, leading with zeros. The output should look as, 0000000042 or if it were 420, 0000000420
Tags (comma-separated)
Save Edits
Cancel