Skip to content

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