https://github.com/mariuszgromada/MathParser.org-mXparser/issues/69 ]]>

Thanks for developing the parser! I'm using it in this Android app I made: https://play.google.com/store/apps/details?id=com.kumailn.calculator

Regards,

Kumail

This is my code:

----------------------------------------------------

Expression e = new Expression("log(10,1000)");

String ms = String.valueOf(e.calculate());

System.out.println(ms);

----------------------------------------------------

The output is 2.9999999999998 ]]>

Can you let me know what framework are you using (java, .net, ...)? mXparser is for numerical computation, not symbolical, and this small "rounding" error might occur. For java "ln(e^6)" gives perfect 6.0

Best regards

]]>Lastly I've noticed that Logs and natural Logs of powers of multiples of 3 do not evaluate to precise numbers. ie, Log(1000) is 2.99999998 instead of 3, and Ln(e^6) is 5.999998 instead of 6.

Best Regards

]]>In terms of very large numbers, in upcoming mXparser v.4.1 "Aeries" you will get full support for scientific notations + other numeral systems with different bases.

https://github.com/mariuszgromada/MathParser.org-mXparser/milestone/1

Referring to your problem - you always can input very large numbers directly (without scientific notation), but the output is always type double. In v.4.1 I will introduce some simple / nice function to format double as string, but still double will have its own limitation regarding numbers representation (meaning loosing precision on very huge numbers).

Best regards

]]>