Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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.