| 495 | } // namespace |
| 496 | |
| 497 | Decimal32::Decimal32(const std::string& str) : Decimal32() { |
| 498 | *this = FromString(str).ValueOrDie(); |
| 499 | } |
| 500 | |
| 501 | Result<Decimal32> Decimal32::FromReal(float x, int32_t precision, int32_t scale) { |
| 502 | return Decimal32RealConversion::FromReal(x, precision, scale); |