From 3d05a0bbf09d007192be870834861c33dac301c5 Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Mon, 6 May 2024 15:37:00 +0100 Subject: [PATCH] docs: improve explanation --- src/sd59x18/Math.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sd59x18/Math.sol b/src/sd59x18/Math.sol index c1c4d07..361838c 100644 --- a/src/sd59x18/Math.sol +++ b/src/sd59x18/Math.sol @@ -170,8 +170,8 @@ function div(SD59x18 x, SD59x18 y) pure returns (SD59x18 result) { function exp(SD59x18 x) pure returns (SD59x18 result) { int256 xInt = x.unwrap(); - // Any input less than the threshold will result in exp returning 0 - // This also prevents an overflow later in the function for very small numbers + // Any input less than the threshold returns zero. + // This check also prevents an overflow for very small numbers. if (xInt < uEXP_MIN_THRESHOLD) { return ZERO; }