Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

BigDecimal#quo

quo(value) → bigdecimal
quo(value, digits) → bigdecimal

Divide by the specified value.

digits

If specified and less than the number of significant digits of the result, the result is rounded to the given number of digits, according to the rounding mode indicated by BigDecimal.mode.

If digits is 0 or omitted, the result is the same as for the / operator.

See BigDecimal#/. See BigDecimal#div.