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

Method IsNegative

decimal.go:1380–1382  ·  view source on GitHub ↗

IsNegative return true if d < 0 false if d == 0 false if d > 0

()

Source from the content-addressed store, hash-verified

1378// false if d == 0
1379// false if d > 0
1380func (d Decimal) IsNegative() bool {
1381 return d.Sign() == -1
1382}
1383
1384// IsZero return
1385//

Callers 2

AbsMethod · 0.95
LnMethod · 0.95

Calls 1

SignMethod · 0.95

Tested by

no test coverage detected