This demo shows how you can calculate mathematical expressions in Navision using C/AL. In example, a string '2+2*2' can be evaluated to 6.
In this demo, parser supports operators +, -, *, /, ^, brackets ( and ), one build-in function ABS(x) and one variable pi=3.14. Build-in functions and variables can be easily changed in C/AL code.