From: Martin Coxall Date: 2006-10-14T00:38:11+09:00 Subject: Re: How do I round off a float to x decimal places > Hi, > > This might be a very naive question but I looked through ruby:Float > documentation for a method which round off's a float number to x decimal > places with no luck. > > Please share if you know. It rather depends on which of the 14-or-so regulalrly used rounding algorithms you need. Float#round has an inbuilt bias toward zero and is therefore not a useful unbiased rounding in many circumstances. Martin