Logo

Programming-Idioms

History of Idiom 156 > diff from v16 to v17

Edit summary for version 17 by programming-idioms.org:
Linked to idiom #215 [Pad string on the left]

Version 16

2019-11-02, 22:02:31

Version 17

2019-11-02, 22:30:56

Idiom #156 Format integer with zero-padding

Assign to string s the value of integer i in 3 decimal digits. Pad with zeros if i < 100. Keep all digits if i1000.

Idiom #156 Format integer with zero-padding

Assign to string s the value of integer i in 3 decimal digits. Pad with zeros if i < 100. Keep all digits if i1000.

Extra Keywords
pad leading fixed width
Extra Keywords
pad leading fixed width