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

Method IncreaseScaleBy

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

Source from the content-addressed store, hash-verified

113}
114
115BasicDecimal32 BasicDecimal32::IncreaseScaleBy(int32_t increase_by) const {
116 DCHECK_GE(increase_by, 0);
117 DCHECK_LE(increase_by, kMaxScale);
118 return (*this) * DecimalTraits<BasicDecimal32>::powers_of_ten()[increase_by];
119}
120
121BasicDecimal32 BasicDecimal32::ReduceScaleBy(int32_t reduce_by, bool round) const {
122 DCHECK_GE(reduce_by, 0);

Callers 12

TYPED_TESTFunction · 0.80
TESTFunction · 0.80
CallMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80
oneMethod · 0.80
RoundMethod · 0.80
RoundMethod · 0.80
TEST_FFunction · 0.80
CheckAndIncreaseScaleFunction · 0.80
CompareFunction · 0.80
ModifyScaleAndPrecisionFunction · 0.80

Calls

no outgoing calls

Tested by 3

TYPED_TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64