method

eql?

v1_9_3_125 - Show latest stable - Class: BigDecimal
eql?(p1)
public

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.new(‘1.0’) == 1.0 -> true