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

Method Decimal128

cpp/src/arrow/util/decimal.cc:561–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559Decimal64::operator int64_t() const { return static_cast<int64_t>(value_); }
560
561Decimal128::Decimal128(const std::string& str) : Decimal128() {
562 *this = Decimal128::FromString(str).ValueOrDie();
563}
564
565Result<Decimal128> Decimal128::FromReal(float x, int32_t precision, int32_t scale) {
566 return Decimal128RealConversion::FromReal(x, precision, scale);

Callers 4

MakeDecimalFunction · 0.45
TEST_PFunction · 0.45
random_decimalsFunction · 0.45

Calls 2

FromStringFunction · 0.85
ValueOrDieMethod · 0.80

Tested by 3

MakeDecimalFunction · 0.36
TEST_PFunction · 0.36
random_decimalsFunction · 0.36