Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1380
func
(d Decimal) IsNegative() bool {
1381
return
d.Sign() == -1
1382
}
1383
1384
// IsZero return
1385
//
Callers
2
Abs
Method · 0.95
Ln
Method · 0.95
Calls
1
Sign
Method · 0.95
Tested by
no test coverage detected