Added support for arbitrary rounding precision for Ruby < 1.9 as well.