| 105 | |
| 106 | template <typename Real> |
| 107 | static Status OverflowError(Real real, int precision, int scale) { |
| 108 | return Status::Invalid("Cannot convert ", real, " to ", DecimalTypeTraits::kTypeName, |
| 109 | "(precision = ", precision, ", scale = ", scale, |
| 110 | "): overflow"); |
| 111 | } |
| 112 | |
| 113 | template <typename Real> |
| 114 | static Result<DecimalType> FromPositiveReal(Real real, int32_t precision, |