From: Robert Klemme Date: 2005-11-04T20:32:09+09:00 Subject: Re: float round Igor Anic wrote: > Sorry for the stupid question, but I colud not find the method to > round float to the specific number of decimal places. > > (1.234).method = 1.23 > > do I really had to write that by hand. Several options off the top of my head: >> (1.234 * 100).round / 100.0 => 1.23 >> ("%5.2f" % 1.234).to_f => 1.23 Kind regards robert