davedelong / DDMathParser

String → Number
MIT License
854 stars 153 forks source link

"e() ** 26" != "exp(26)" #179

Open m4mario opened 3 years ago

m4mario commented 3 years ago

First off, Thanks for the excellent work on this library.

e() ** 26 = 1,95,72,96,09,428.8385 exp(26) = 1,95,72,96,09,428.83878 (Expected answer)

If truncated, that mantissa should be 8388, instead of 8385

davedelong commented 3 years ago

Fundamentally this is issue #99, but I suppose there's an opportunity for the pow() function to recognize that the base is e and then delegate out to the exp() function for evaluation..