I want to pass a string to DDMathParser and store answer in another string variable using swift. I am totally new to iOS platform so I dont really know syntax of functions. Example:
var expr = "5+9*2" //Some Expression
var result = DDMathParser.evaluate(expr) // Result of Expression
Here is a simple example how to use DDMathParser from Swift:
If you need floating point results then replace
integerValuebydoubleValue.