Array compare [HELP]

Hello guys, I'm trying to compare a array of elements to one value, is there any way to do that using ncalc? Example: new Expression(ruleExpression.Replace(" [1,2,3] > 1 and 2 < 3 and 2 == 2"...

Id #28361 | Release: None | Updated: Oct 6 at 12:41 PM by mathyaku | Created: Oct 6 at 12:41 PM by mathyaku

simulate Looping using NCalc

I am using NCalc (Codeplex library) to evaluate expressions from a text file. I want to simulate a loop like this : int i = 0; do { Console.WriteLine("Value of I is :: {0}", i); i++; } while ...

Id #28360 | Release: None | Updated: May 24 at 4:55 PM by gauripadbidri | Created: May 24 at 4:55 PM by gauripadbidri

BigInteger issue

Hello, I tried to create a custom function fact() with BigInteger parameters for counting factorial with big numbers. If I use just the function itself then there is no issue but it is not workin...

Id #28359 | Release: None | Updated: Feb 22 at 8:40 PM by jamasvk | Created: Feb 18 at 9:35 PM by jamasvk

Expression incorrectly evaluated for NaN operands

For the statements below: string expression = "a > 0 && b < 10"; Expression e2 = new Expression(expression); e2.Parameters["a"] = 10; e2.Parameters["b"] = double.NaN...

Id #28358 | Release: None | Updated: Feb 10 at 5:44 PM by lmsasu | Created: Feb 10 at 5:43 PM by lmsasu

System.OverflowException

Whit this expressión: "0 | 956301312" The exception raised is: System.OverflowException - > Value too large or too small for UInt16. Some solution to avoid this exception???

Id #28357 | Release: None | Updated: Dec 5, 2016 at 9:23 AM by jandtxu | Created: Dec 5, 2016 at 9:23 AM by jandtxu

nCalcExpression.EvaluateFunction += removes support of the pre-existing if() function

nCalcExpression.EvaluateFunction += removes support of the pre-existing if() function For example: var nCalcExpression = GetNCalcExpression("if(1<2,'true','false')"); nCalcExpression.Eval...

Id #28356 | Release: None | Updated: Jul 15, 2016 at 8:33 PM by david_n_m_bond | Created: Jul 15, 2016 at 8:33 PM by david_n_m_bond

IsParameterDefined Operator

I'd like to propose a new operator that I'm calling IsParameterDefined. I'd like to use it with an if() in the following way: if (IsParameterDefined([SomeParameterName]), [SomeParameterName] * 5,...

Id #28355 | Release: None | Updated: Mar 3, 2016 at 2:07 PM by module11 | Created: Mar 3, 2016 at 2:07 PM by module11

Adding a Parameter in the EvaluateParameter delegate

Hi, can we have the ability to add new parameters to the the expression when the EvaluateParameter delegate is running. For example: expression.EvaluateParameter += delegate(string name, ParameterA...

Id #28354 | Release: None | Updated: Mar 3, 2016 at 2:02 PM by module11 | Created: Mar 3, 2016 at 2:02 PM by module11

Allow to configure CultureInfo

I see many posts here about dots and comma as the decimal value separator. From what I see, it use the current computer cultureinfo. I have a french Windows (,), and work with numbers written in ...

Id #28353 | Release: None | Updated: Feb 9, 2016 at 9:11 PM by Dunge | Created: Feb 9, 2016 at 9:05 PM by Dunge

Remove debugging call to improve performance

This is the line that I am referring to. I do not think it is appropriate in a library. https://github.com/tyrone-sudeium/NCalc/blob/c141185099082663e5c7651e6b87823c9887feb3/Evaluant.Calculator/E...

Id #28352 | Release: None | Updated: Mar 29 at 12:13 PM by Benjy1979 | Created: Feb 1, 2016 at 6:38 PM by waynenilsen