Division by zero

Division by zero returns +infinity. I think it should instead throw exception (DivisionByZeroException) or NaN. Correct me if I am wrong.

Id #28322 | Release: None | Updated: Apr 11 at 2:51 PM by petriq | Created: Apr 11 at 2:51 PM by petriq

Operator '+' cannot be applied to operands of type 'double' and 'decimal'

I have an expression that does some math on a lot of parameters including multiplication, addition, and division. All of the parameters are explicitly converted to Decimal before passing into NCalc...

Id #28321 | Release: None | Updated: Mar 27 at 8:59 PM by sebastienros | Created: Mar 27 at 11:46 AM by NightOwl888

^ is not implemented as pow

+-/* all work, except the ^ for pow() example: 2^3 should work as pow(2,3)

Id #28320 | Release: None | Updated: Feb 5 at 5:47 PM by Trapleuning | Created: Feb 5 at 5:47 PM by Trapleuning

function max uses only first parameter to determine precision

When using max on an int and a double, the order of parameters influences the outcome. the following equations produce a different outcome: max(1, 2.01) max(2.01, 1)

Id #28319 | Release: None | Updated: Feb 5 at 5:36 PM by Trapleuning | Created: Feb 5 at 5:36 PM by Trapleuning

Converting an integer to float/double unnecessarily

Example: NCalc.Expression exp = new NCalc.Expression("3735928559"); // 0xDEADBEEF object resultvar = exp.Evaluate(); console.writeline(resultvar.ToString()); // 3.73592858E+9 Result is 3.7...

Id #28318 | Release: None | Updated: Apr 24 at 9:38 AM by Thart | Created: Jan 17 at 5:47 AM by bugmenot2

Recoverable precision loss when manipulating very large ints

Evaluating the formula 111111111111111+111111111111111+111111111111111 produces the result 333333351366656. Normally I would have just chalked this up to the precision limits that floating p...

Id #28315 | Release: None | Updated: Apr 24 at 10:26 AM by Thart | Created: Sep 8 2011 at 3:55 PM by wujonesj2

Overflow encountered when terms can be cast as integers

Evaluating the formula 735388600.0000+714168700.0000+625672900.0000+552304300.0000 produces the result -166743279600. Alternatively, evaluating 735388600.0000+714168700.0000+625672900.0...

Id #28314 | Release: None | Updated: Apr 24 at 10:26 AM by Thart | Created: Sep 8 2011 at 3:45 PM by wujonesj2

Rounding ??

Please, can you tell me why this components, get diferent results to the following lines? Console.WriteLine(new Expression("5200856696+325315699-817185385").Evaluate()); ...

Id #28312 | Release: None | Updated: May 16 2011 at 4:51 PM by AlainBismark | Created: May 16 2011 at 4:51 PM by AlainBismark

Using Parameter named 'e'

If you define a parameter with the name "e" to for example 1, the expression "e-2" will not be equal to -1. Rather, it seems like Ncalc tries to parse it like an exponent function. There should be ...

Id #28311 | Release: None | Updated: May 4 2011 at 8:32 AM by agotfred | Created: May 3 2011 at 4:54 PM by agotfred

Get Parameters

Hello, I want to know witch parameters are needed for a function. Is it possible to make an extra list of strings with used parameter names? Sample: Expression e = new Expression("[x] * [y]"...

Id #28310 | Release: None | Updated: Mar 19 at 3:27 PM by RobInMN | Created: Jan 26 2011 at 3:27 PM by Fesse