From: Paul Lutus Date: 2006-09-30T05:40:15+09:00 Subject: Re: Extremely simple printf question Wes Gamble wrote: > Got it - sorry. Actually, you didn't, quite. > > irb(main):014:0> printf("%-10.2f", 5.3456) > 5.35 => nil You almost always want to right-justify a column of such numbers: irb(main):014:0> printf("%10.2f", 5.3456) Use the default form without the "-", add a field width larger than the largest number, and you will get a nice right-justified column. -- Paul Lutus http://www.arachnoid.com