Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. 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.3 · 3.2 · 3.0