Merge remote-tracking branch 'XRPLF/ximinez/number-round-maxrep-down' into ximinez/number-round-maxrep

* XRPLF/ximinez/number-round-maxrep-down:
  Apply suggestions from AI code review
This commit is contained in:
Ed Hennis
2026-06-12 19:08:04 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ namespace detail {
* inefficient.
*/
constexpr std::size_t kUint64Digits = 20;
constexpr std::size_t kUint128Digits = 39;
[[maybe_unused]] constexpr std::size_t kUint128Digits = 39;
template <typename T, std::size_t Digits>
consteval std::array<T, Digits>

View File

@@ -212,7 +212,7 @@ concept UnsignedMantissa = std::is_unsigned_v<T> || std::is_same_v<T, uint128_t>
precision to an operation. This enables the final result
to be correctly rounded to the internal precision of Number.
At it's core, the Guard really only needs three pieces of information to determine how to round:
At its core, the Guard really only needs three pieces of information to determine how to round:
1. The rounding mode
2. The last digit dropped from the mantissa (i.e. the first digit after the decimal point).
(first byte of digits_)