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

Just out of curiosity, does it make any difference on benchmarks with 
Ruby using division versus multiplication?  It used to be much faster to 
multiply by .01 than divide by 100.  I don't know if this has changed 
with newer processors and compilers.