Adrian Fraiha wrote: > Is there or a function, or anyone know of a hack without using if else > statements extensivley to have numbers displayed, such as 1 as 0001, 100 > as 0100, 1000 as 1000 etc? > > Anyhelp is appreciated, thanks! > irb(main):001:0> "%04d" % 1 => "0001"