diff --git a/contracts/utils/math/Math.sol b/contracts/utils/math/Math.sol index 1f8dd34fe0f..e3d7f799d41 100644 --- a/contracts/utils/math/Math.sol +++ b/contracts/utils/math/Math.sol @@ -407,6 +407,9 @@ library Math { } } + /** + * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. + */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; }