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

Function exp10

context.go:1292–1297  ·  view source on GitHub ↗

exp10 returns x, 10^x. An error is returned if x is too large. The returned value must not be mutated.

(x int64, tmp *BigInt)

Source from the content-addressed store, hash-verified

1290// exp10 returns x, 10^x. An error is returned if x is too large.
1291// The returned value must not be mutated.
1292func exp10(x int64, tmp *BigInt) (exp *BigInt, err error) {
1293 if x > MaxExponent || x < MinExponent {
1294 return nil, errors.New(errExponentOutOfRangeStr)
1295 }
1296 return tableExp10(x, tmp), nil
1297}

Callers 1

ExpMethod · 0.85

Calls 1

tableExp10Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…