| 113 | } |
| 114 | |
| 115 | BasicDecimal32 BasicDecimal32::IncreaseScaleBy(int32_t increase_by) const { |
| 116 | DCHECK_GE(increase_by, 0); |
| 117 | DCHECK_LE(increase_by, kMaxScale); |
| 118 | return (*this) * DecimalTraits<BasicDecimal32>::powers_of_ten()[increase_by]; |
| 119 | } |
| 120 | |
| 121 | BasicDecimal32 BasicDecimal32::ReduceScaleBy(int32_t reduce_by, bool round) const { |
| 122 | DCHECK_GE(reduce_by, 0); |
no outgoing calls