Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
BigDecimal#nonzero?
nonzero?
ext/bigdecimal/bigdecimal.c
View on GitHub ↗
static VALUE
BigDecimal_nonzero(VALUE self)
{
Real *a = GetVpValue(self, 1);
return VpIsZero(a) ? Qnil : self;
}
Returns self if the value is non-zero, nil otherwise.