MCPcopy
hub / github.com/shopspring/decimal / Equal

Method Equal

decimal.go:1323–1325  ·  view source on GitHub ↗

Equal returns whether the numbers represented by d and d2 are equal.

(d2 Decimal)

Source from the content-addressed store, hash-verified

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

Callers 15

scanHelperFunction · 0.95
TestGobEncodeFunction · 0.95
EqualsMethod · 0.95
RoundCeilMethod · 0.95
RoundFloorMethod · 0.95
RoundUpMethod · 0.95
RoundDownMethod · 0.95
AtanMethod · 0.95
SinMethod · 0.95
TanMethod · 0.95
TestNewFromFloatRandomFunction · 0.80
TestNewFromFloatQuickFunction · 0.80

Calls 1

CmpMethod · 0.95

Tested by 15

scanHelperFunction · 0.76
TestGobEncodeFunction · 0.76
TestNewFromFloatRandomFunction · 0.64
TestNewFromFloatQuickFunction · 0.64
TestNewFromFloat32RandomFunction · 0.64
TestNewFromFloat32QuickFunction · 0.64
TestUnmarshalJSONNullFunction · 0.64
TestDecimal_FloorFunction · 0.64
TestDecimal_CeilFunction · 0.64