I'm using the NCalc lib
A simple formula like "Abs (-1) + Cos (2)" gives the following exception:
Operator '+' can not be applied to operands of types 'decimal' and 'double'
Why? How to solve?
The calculation is to be executed as follows:
new Expression("Abs(-1) + Cos(2)").Evaluate()
The only discussion related on the project site is a little old and talks about editing the source code link