Skip to content

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

class method

BigDecimal.double_fig

double_fig

BigDecimal.double_fig

The BigDecimal.double_fig class method returns the number of digits a Float number is allowed to have. The result depends upon the CPU and OS in use.

See also .interpret_loosely .json_create also in 3.3 · 3.2 · 3.1