Friday, February 10, 2012

Useful code: Padding

On a recent project of mine, we wanted to present certain natural keys padded with zeros. So instead of having:

1234
12345
123456


..we now have


00001234
00012345
00123456

We used this simple code:

image

No comments:

Post a Comment