Method: BigDecimal#===
- Defined in:
- bigdecimal.c
#===(r) ⇒ Object
Tests for value equality; returns true if the values are equal.
The == and === operators and the eql? method have the same implementation for BigDecimal.
Values may be coerced to perform the comparison:
BigDecimal('1.0') == 1.0 #=> true
1672 1673 1674 1675 1676 |
# File 'bigdecimal.c', line 1672
static VALUE
BigDecimal_eq(VALUE self, VALUE r)
{
return BigDecimalCmp(self, r, '=');
}
|