Operator '+' can't be applied to operands of types 'decimal' and 'double'

Topics: Help
Mar 25, 2015 at 3:06 PM
A simple formula like

new Expression("Abs(-1) + Cos(2)").Evaluate()
throws the exception

Operator '+' can't be applied to operands of types 'decimal' and 'double'
Why is this?

Is there any workaround?

The only thread i found on the project's website related to this error is quite old and talks about editing the source code. https://ncalc.codeplex.com/discussions/346702

Im using the latest version