Workaround missing ndigits parameter to Float#round in Ruby 1.8.7