MCPcopy Create free account
hub / github.com/cockroachdb/apd / IsZero

Method IsZero

decimal.go:619–621  ·  view source on GitHub ↗

IsZero returns true if d == 0 or -0.

()

Source from the content-addressed store, hash-verified

617
618// IsZero returns true if d == 0 or -0.
619func (d *Decimal) IsZero() bool {
620 return d.Sign() == 0
621}
622
623// Modf sets integ to the integral part of d and frac to the fractional part
624// such that d = integ+frac. If d is negative, both integ or frac will be either

Callers 12

PowMethod · 0.95
Int64Method · 0.95
setExponentMethod · 0.95
NegMethod · 0.95
gdaTestFunction · 0.80
MulMethod · 0.80
quoSpecialsMethod · 0.80
QuoMethod · 0.80
RemMethod · 0.80
ExpMethod · 0.80
quantizeMethod · 0.80
TestIsZeroFunction · 0.80

Calls 1

SignMethod · 0.95

Tested by 2

gdaTestFunction · 0.64
TestIsZeroFunction · 0.64