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

Method GetMaxValue

cpp/src/arrow/util/basic_decimal.cc:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109BasicDecimal32 BasicDecimal32::GetMaxValue(int32_t precision) {
110 DCHECK_GE(precision, 0);
111 DCHECK_LE(precision, kMaxPrecision);
112 return DecimalTraits<BasicDecimal32>::powers_of_ten()[precision];
113}
114
115BasicDecimal32 BasicDecimal32::IncreaseScaleBy(int32_t increase_by) const {
116 DCHECK_GE(increase_by, 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected