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

Method Abs

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

Source from the content-addressed store, hash-verified

409BasicDecimal128& BasicDecimal128::Abs() { return *this < 0 ? Negate() : *this; }
410
411BasicDecimal128 BasicDecimal128::Abs(const BasicDecimal128& in) {
412 BasicDecimal128 result(in);
413 return result.Abs();
414}
415
416bool BasicDecimal128::FitsInPrecision(int32_t precision) const {
417 DCHECK_GT(precision, 0);

Callers 12

garrow_decimal_absFunction · 0.80
ReduceScaleByMethod · 0.80
AbsFunction · 0.80
UnaryOpFunction · 0.80
CallMethod · 0.80
CallMethod · 0.80
DoMeanMethod · 0.80
FinalizeImplMethod · 0.80
MinLeadingZerosFunction · 0.80
ComputeRoundingDeltaFunction · 0.80
abs_decimal128Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected