Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
BigDecimal#>=
self >= other → true or false
ext/bigdecimal/bigdecimal.c
View on GitHub ↗
static VALUE
BigDecimal_ge(VALUE self, VALUE r)
{
return BigDecimalCmp(self, r, 'G');
}
Returns true if self is greater than or equal to other, false otherwise:
Example
b = BigDecimal('1.5') b >= 1 # => true b >= 1.0 # => true b >= Rational(1, 1) # => true b >= 1.5 # => true b > 2 # => false
Raises an exception if the comparison cannot be made.