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

Method IsZero

decimal.go:1389–1391  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1387// false if d > 0
1388// false if d < 0
1389func (d Decimal) IsZero() bool {
1390 return d.Sign() == 0
1391}
1392
1393// Exponent returns the exponent, or scale component of the decimal.
1394func (d Decimal) Exponent() int32 {

Callers 7

PowInt32Method · 0.95
ExpHullAbrhamMethod · 0.95
ExpTaylorMethod · 0.95
LnMethod · 0.95
PowMethod · 0.80
PowWithPrecisionMethod · 0.80

Calls 1

SignMethod · 0.95

Tested by

no test coverage detected