Logo

Programming-Idioms

History of Idiom 156 > diff from v15 to v16

Edit summary for version 16 by programming-idioms.org:
Linked to idiom #214 [Pad string on the right]

Version 15

2019-10-07, 23:23:50

Version 16

2019-11-02, 22:02:31

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