mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-18 21:10:02 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user