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