From: Difei Zhao Date: 2008-09-12T22:14:13+09:00 Subject: Re: float precision thomas peklak wrote: > The round function in the float class does not provide a precision > feature, but you can do something like: > (100*9.23234234234532).round/100.0 > > According to my benchmarks this is at least 1/3 faster than your > approach > > Thomas thanks for the sharing. -- Posted via http://www.ruby-forum.com/.