mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-07 10:47:05 +00:00
- Treat values in between kMaxRep (2^63-1) and kMaxRepUp (((kMaxRep / 10) + 1) * 10, which is the next multiple of 10 above kMaxRep) as if those values were sequential, and values in between were "fractional". - This results in values above the midpoint rounding up to kMaxRepUp, and below the midpoint to kMaxRep when rounding to nearest. Other rounding modes act along the same lines. - Also refactor "Number::Guard::round()` to return an enum making it clearer what's going on.