Round a BigDecimal
require 'bigdecimal' require 'bigdecimal/math' include BigMath two = BigDecimal("2") BigMath::sqrt(two, 10).round(10).to_s("F") # => "1.4142135624"