Dont have add function in PRBMathSD59x18 #94
-
Beta Was this translation helpful? Give feedback.
Answered by
PaulRBerg
Nov 25, 2022
Replies: 2 comments
-
May I know how to do addition using fixed point numbers ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
There's nothing special about adding numbers in PRBMath V2. You can just use the usual |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
PaulRBerg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's nothing special about adding numbers in PRBMath V2. You can just use the usual
+
operator (don't forget though that by default Solidity implements checked arithmetic, which you can disable viaunchecked
).