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

Function Floor

cpp/src/gandiva/precompiled/decimal_ops.cc:698–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698BasicDecimal128 Floor(const BasicDecimalScalar128& x, bool* overflow) {
699 return RoundWithPositiveScale(x, x.precision(), 0, RoundType::kRoundTypeFloor,
700 overflow);
701}
702
703BasicDecimal128 Convert(const BasicDecimalScalar128& x, int32_t out_precision,
704 int32_t out_scale, bool* overflow) {

Callers 2

TEST_FFunction · 0.70
floor_decimal128Function · 0.70

Calls 2

RoundWithPositiveScaleFunction · 0.85
precisionMethod · 0.45

Tested by 1

TEST_FFunction · 0.56