Zero-pad a number to the given size.