I have several formulas stored in a Plist such as A * B. I'm trying to figure out how I could take this formula currently stored as a string in a Plist and use it as an actual calculation formula. I tried going the route of making the formula to (A) * (B) and then setting A and B before trying to use the formula but it did not work. Any suggestions?
example
let A = 5
let B = 2
println (formula)
actually printed out "(A) * (B)"
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…