[erlang-questions] io:format printing integers prefixed with zero(0)

jm <>
Sat May 3 06:51:33 CEST 2008


Given an integer is there a format which will prefix it with zeros to a 
  fixed width? eg,

   3 => 003
  50 => 050
205 => 205

the equivelant of C's printf("%3.3d", i).


Jeff.



More information about the erlang-questions mailing list