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

Method Decimal64

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

Source from the content-addressed store, hash-verified

528Decimal32::operator Decimal64() const { return Decimal64(static_cast<int64_t>(value_)); }
529
530Decimal64::Decimal64(const std::string& str) : Decimal64() {
531 *this = FromString(str).ValueOrDie();
532}
533
534Result<Decimal64> Decimal64::FromReal(float x, int32_t precision, int32_t scale) {
535 return Decimal64RealConversion::FromReal(x, precision, scale);

Callers 2

random_decimalsFunction · 0.45

Calls 2

FromStringFunction · 0.85
ValueOrDieMethod · 0.80

Tested by 1

random_decimalsFunction · 0.36