From: James Edward Gray II Date: 2005-11-03T22:58:35+09:00 Subject: Re: Newbie: How to format a number to always show two decimals? On Nov 3, 2005, at 7:56 AM, Dominik Bathon wrote: > If your cols are strings: > > [a.zolum, b.feb, c.gorza].map { |col| col.rjust(7) }.join > > If they aren't you have to add to_s: > > [a.zolum, b.feb, c.gorza].map { |col| col.to_s.rjust(7) }.join You can also use max() to get the size, instead of a magic number. James Edward Gray II