Created Unassigned: get result of formula when values are dynamic/Not Present...
User can input the formula like this:1)a+b+c2)a+b3)a/b+2+d-8/f4)a/b5)and many moreScenario: Values of all the variables are calculated at run time. For first formula I can set the values 0 if there is...
View ArticleCreated Unassigned: Constant string (escaped) to Function. [28350]
I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to...
View ArticleNew Post: Getting list of variables in an expression...
Be careful, I don't think using EvaluateParameter and EvaluateFunction delegates to record the name will work reliably for a Logical/Binary expression since the expression evaluator uses short circuit...
View ArticleCreated Unassigned: Max undefined? [28351]
I have defined alot of custom functions but I was hoping to also use some of the built in functions. Right now it seems that t'Max" is an invalid function. Any ideas on how to get it recognized? My...
View ArticleNew Post: Array of function evaluators or a way to speed up evaluation
Hi, my extended funciton evaluator is of the form private void myEvaluator(string name, FunctionArgs args) { if(name=="A") { // call function to evaluate } else if(name=="B") { // call function to...
View ArticleCommented Unassigned: Constant string (escaped) to Function. [28350]
I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to...
View ArticleCommented Unassigned: Constant string (escaped) to Function. [28350]
I have a function that I would like to evaluate: RegEx(test, <re>) where re is the string representation of the regular expression that I would like to evaluate. I cannot seem to find a way to...
View ArticleNew Post: TimeSpan value type?
I know you can define a DateTime object like this #2008/01/31#. I want to know if there's the equivalent to define a TimeSpan value? For example, I would like to know the amount of time something was...
View ArticleNew Post: Decimal parameters and float constants
I have the exact same issue! (X + Y) * 2.23 will fail, if you pass X and Y as decimal parameters! WHY?!
View ArticleNew Post: Casting to double fails
The code sample in the first post of this thread will also fail, even after your suggested 'fix', if instead of "2" you use "3.5" (for example). i.e. string formel = "x+3.5"; Expression e = new...
View ArticleCreated Unassigned: Remove debugging call to improve performance [28352]
This is the line that I am referring to. I do not think it is appropriate in a...
View ArticleCreated Unassigned: Allow to configure CultureInfo [28353]
I see many posts here about dots and comma as the value separator.From what I see, it use the current computer cultureinfo. I have a french Windows (,), and work with numbers written in English (.)....
View ArticleEdited Unassigned: Allow to configure CultureInfo [28353]
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 English...
View ArticleNew Post: Adding a Parameter in EvaluateParameter delegate
Hi, is there any way I can do something like this:expression.EvaluateParameter += delegate(string name, ParameterArgs args) { // get hold of the parameter string myParam = "[Sub] * [Expression]";...
View ArticleNew Post: Override ^ operator
I am using NCalc successfully. However, I would like to override the meaning of the ^ operator. Currently it is doing bitwise XOR operation. I want to change it to Math.Pow. Is it possible to do that...
View ArticleCreated Unassigned: Adding a Parameter in the EvaluateParameter delegate [28354]
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,...
View ArticleCreated Unassigned: IsParameterDefined Operator [28355]
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, 0)if...
View ArticleNew Post: NCalc.dll has failed the NXCheck check
Hi, I got the following warning when running my application through the Windows Certification program: WARNING 3 Binary analyzer Warning: The binary analyzer test detected the following errors: File...
View ArticleCommented Unassigned: Remove debugging call to improve performance [28352]
This is the line that I am referring to. I do not think it is appropriate in a...
View ArticleCreated Unassigned: nCalcExpression.EvaluateFunction += removes support of...
nCalcExpression.EvaluateFunction += removes support of the pre-existing if() functionFor example: var nCalcExpression = GetNCalcExpression("if(1<2,'true','false')"); nCalcExpression.EvaluateFunction...
View Article