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

Method NumDigits

table.go:57–59  ·  view source on GitHub ↗

NumDigits returns the number of decimal digits of d.Coeff. gcassert:inline

()

Source from the content-addressed store, hash-verified

55//
56//gcassert:inline
57func (d *Decimal) NumDigits() int64 {
58 return NumDigits(&d.Coeff)
59}
60
61// NumDigits returns the number of decimal digits of b.
62func NumDigits(b *BigInt) int64 {

Callers 15

LnMethod · 0.95
setExponentMethod · 0.95
CmpMethod · 0.95
ModfMethod · 0.95
ReduceMethod · 0.95
BenchmarkNumDigitsLookupFunction · 0.80
BenchmarkNumDigitsFullFunction · 0.80
TestNumDigitsFunction · 0.80
TestDigitsLookupTableFunction · 0.80
doneMethod · 0.80
RoundMethod · 0.80

Calls 1

NumDigitsFunction · 0.85

Tested by 5

BenchmarkNumDigitsLookupFunction · 0.64
BenchmarkNumDigitsFullFunction · 0.64
TestNumDigitsFunction · 0.64
TestDigitsLookupTableFunction · 0.64