From: Peter Roome Date: 2007-10-27T04:51:51+09:00 Subject: Re: Rounding to the nearest 0.05 > Just off-hand, my initial reaction would be: > > (a * 20).round.to_f/20 > > where "a" is your variable. Some quick tests with irb seems to show > this as working. > > Coey Cheers for the quick response guys, much appreciated. What difference would the .to_f make between these solutions? -- Posted via http://www.ruby-forum.com/.