Skip to content

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

class method

BigDecimal.double_fig

BigDecimal.double_fig → integer

Returns the number of digits a Float object is allowed to have; the result is system-dependent:

Example
BigDecimal.double_fig # => 16
See also .interpret_loosely .json_create also in 3.3 · 3.1 · 3.0