if RUBY_VERSION < "1.9"
  # :nocov_19:
  class Fixnum
    alias quo_without_units quo

    # @note this patch is necessary for ruby 1.8 because cases where Integers are divided by Units don't work quite right
    # @param [Numeric]
    # @return [Unit, Integer]
    def quo_with_units(other)
      case other
      when RubyUnits::Unit
        self * other.inverse
      else
        quo_without_units(other)
      end
    end
  
    alias quo quo_with_units
    alias / quo_with_units
  end
  # :nocov_19:
end
