Equal returns whether the numbers represented by d and d2 are equal.
(d2 Decimal)
| 1321 | |
| 1322 | // Equal returns whether the numbers represented by d and d2 are equal. |
| 1323 | func (d Decimal) Equal(d2 Decimal) bool { |
| 1324 | return d.Cmp(d2) == 0 |
| 1325 | } |
| 1326 | |
| 1327 | // Deprecated: Equals is deprecated, please use Equal method instead. |
| 1328 | func (d Decimal) Equals(d2 Decimal) bool { |