Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
BigDecimal.double_fig
BigDecimal.double_fig → integer
ext/bigdecimal/bigdecimal.c
View on GitHub ↗
static inline VALUE
BigDecimal_double_fig(VALUE self)
{
return INT2FIX(VpDblFig());
}
Returns the number of digits a Float object is allowed to have; the result is system-dependent:
Example
BigDecimal.double_fig # => 16