Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

BigDecimal#/

a / b → bigdecimal

Divide by the specified value.

The result precision will be the precision of the larger operand, but its minimum is 2*Float::DIG.

See BigDecimal#div. See BigDecimal#quo.

See also #-@ #< #- #<= also in 3.2 · 3.1 · 3.0