Is there any way to calculate the following in Solidity?

468750 * 2.718281828459045 ** (x * 0.003662040962) - 468750

Typically I would convert the decimals using decimal * 10 ** 18 but with the exponent that will result in overflow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.