Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | BennyDT |
I’m trying to find the best method to calculate a string or an array.
For Example, “1 + 20 - 3” and return sum. I also thought about using an array with numbers and string math symbols like this: [1, “+”, 20, “-”, 3] and return sum.
The reason i’m asking is that I imagine there is a math or sum function that does this and I’m just unable to find it.