Martin Coxall wrote: > > 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 Chekc out: http://facets.rubyforge.org/api/core/index.html Look for the round_* methods. T.