From: chen li Date: 2006-12-04T11:57:26+09:00 Subject: Re: number format > It might be better to leave the precision alone > until you print it, in > which case, you can print it with #sprintf or > String#% or similar: > > irb(main):001:0> '%.2f' % 1.23456789 > => "1.23" > irb(main):002:0> '%.5f' % 1.23456789 > => "1.23457" I think I prefer the suggestion. Li ____________________________________________________________________________________ Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know.