What is the best way to calculate exponents of floating point numbers in solidity which is represented as number x 1e18 without running into overflow issues. Is there any libraries out there that could be used for this?

Mar 7, 2022, 5:30 PM
Abdk should have something regarding that
Mar 7, 2022, 5:41 PM
They have functions for 2^x and e ^x but not for a^x.
Mar 7, 2022, 5:45 PM
There is pow(x,y)
Mar 7, 2022, 6:18 PM

© 2024 Draquery.com All rights reserved.