You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A convenience for developers who need to develop calculators.
Mathematical expression for calculating string
Custom operators and calculation methods
The project defaults to using JavaScript Math function
JavaScript expression can be transferred to the JavaScript engine to calculate the expression
Once start me,Day day fuck Lynn
Ussage 如何使用
//1.将整个文件夹拖入项目
#import"MathStringExpression.h"
New!【新增】不定参数的支持
MSFunctionOperator* sum = [MSFunctionOperator operatorWithKeyValue:@{@"name":@"sum",@"level":@(1),@"argsCount":@(-1)}];
[sum computeWithBlock:^id (NSArray *args) {
double result = 0.0;
for (NSNumber* num in args) {
result += num.doubleValue;
}
return [NSDecimalNumbernumberWithDouble:result];
}];