Mariusz Gromada
Mariusz Gromada
https://mathparser.org/mxparser-tutorial/built-in-tokens-key-words-manipulation/
Ok, this will be easy :-) I will do that soon. As of now you can do it like that: ``` Expression e = new Expression("floor(13/7)"); mXparser.consolePrintln(e.calculate()); ``` Result: `[mXparser-v.5.1.1]...
Done, example "\\" backslash as integer division operator `"7\3"` = 2
Thanks. Have you been trying switching off smart rounding settings? Below the link tot he section in the tutorial: https://mathparser.org/mxparser-tutorial/smart-rounding-settings/ Best regards
I belive there was a bug in 4.4 with default settings. Can you switch off all the roundings?
Can you run this code for me? ``` mXparser.disableAlmostIntRounding(); mXparser.disableCanonicalRounding(); mXparser.disableUlpRounding(); String expStr = "0.0000004566969933 / 36370.51937825058"; Expression testExp = new Expression(expStr); double value = testExp.calculate(); double reg = 0.0000004566969933...
Can you also make a test using more fresh .net framework?
Ok, now pls see my result when canonical rounding is enabled ``` mXparser.disableAlmostIntRounding(); mXparser.enableCanonicalRounding(); mXparser.disableUlpRounding(); String expStr = "0.0000004566969933 / 36370.51937825058"; Expression testExp = new Expression(expStr); double value = testExp.calculate();...
I believe I am facing consequence of this https://stackoverflow.com/questions/65339515/double-to-string-conversion-different-for-net-framework-and-net-core
I am using to string conversion in canonical rounding.