MCPcopy Create free account
hub / github.com/apache/arrow / PowerOfTen

Method PowerOfTen

cpp/src/arrow/util/decimal.cc:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 // Return 10**exp, with a fast lookup, assuming `exp` is within bounds
75 template <typename Real>
76 static Real PowerOfTen(int32_t exp) {
77 constexpr int N = kPrecomputedPowersOfTen;
78 DCHECK(exp >= -N && exp <= N);
79 return RealTraits<Real>::powers_of_ten()[exp + N];
80 }
81
82 // Return 10**exp, with a fast lookup if possible
83 template <typename Real>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected