What is the use of NSExpression?

后端 未结 4 1871
野趣味
野趣味 2021-01-03 13:23

How to calculate formulas like (a + b) ^ 2, sum((a + b) / 2) using NSExpression? I am the beginner to NSExpression.

(a + b) ^

4条回答
  •  别那么骄傲
    2021-01-03 13:43

    NSExpression is not a general-purpose mathematical expression evaluator. It's meant to be used with NSPredicate to describe selection criteria in Core Data queries.

提交回复
热议问题