Releases: PaulRBerg/prb-math
Releases · PaulRBerg/prb-math
v2.0.0
Added
- Addition and subtraction functions in the typed libraries.
- Gas estimates for
fromInt
,fromUint
,pow
,toInt
andtoUInt
. - Structs
PRBMath.SD59x18
andPRBMath.UD60x18
, simple wrappers to indicate that the variables are fixed-point numbers. - Typed versions of the library:
PRBMathSD59x18Typed.sol
andPRBMathUD60x18Typed.sol
.
Changed
- Increase the accuracy of
exp2
by using the 192.64-bit format instead of 128.128-bit. - Rename
PRBMathCommon.sol
toPRBMath.sol
. - Set named parameter instead of returning result in
pow
functions. - Update gas estimates for
exp
andexp2
.
Fixed
- Bug in
log10
which made the result incorrect when the input was not a multiple of 10. - Typos in NatSpec comments.
v1.1.0 [YANKED]
Added
- New convertor functions
fromInt
andtoInt
inPRBMathSD59x18.sol
. - New convertor functions
fromUint
andtoUint
inPRBMathUD60x18.sol
. - New function
mulDivSigned
inPRBMathCommon.sol
. - New function
pow
inPRBMathSD59x18.sol
andPRBMathUD60x18.sol
Changed
- Rename the previous
pow
function topowu
. - Speed up
exp2
by simplifying the integer part calculations. - Use the fixed-point format in NatSpec comments.
Fixed
- Minor typos in NatSpec comments.