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

Method MaxDecimalInteger

cpp/src/arrow/testing/random.cc:404–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 RandomArrayGenerator* rng_;
403
404 static IntegerType MaxDecimalInteger(int32_t digits) {
405 return static_cast<IntegerType>(std::ceil(std::pow(10.0, digits))) - 1;
406 }
407
408 std::shared_ptr<Array> MakeRandomArray(int64_t size, double null_probability,
409 int64_t alignment, MemoryPool* memory_pool) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected