# encoding: UTF-8

BigDecimal.class_eval do

  # In Ruby 1.8 `BigDecimal#floor` returns a `BigDecimal`
  # In Ruby 1.9 `BigDecimal#floor` returns a `Fixnum`
  # We change the behavior of `BigDecimal#floor` to reflect Ruby 1.9 behavior.
  def floor
    super.to_i
  end

end
