| 326 | } |
| 327 | |
| 328 | BasicDecimal32 operator%(const BasicDecimal32& left, const BasicDecimal32& right) { |
| 329 | BasicDecimal32 remainder; |
| 330 | BasicDecimal32 result; |
| 331 | auto s = left.Divide(right, &result, &remainder); |
| 332 | DCHECK_EQ(s, DecimalStatus::kSuccess); |
| 333 | return remainder; |
| 334 | } |
| 335 | |
| 336 | bool operator<(const BasicDecimal64& left, const BasicDecimal64& right) { |
| 337 | return left.value() < right.value(); |