I've got a program that parses an input of money to an arithmetic equation (e.g. 2×20p
is parsed to 2*20
), but I now need to find a way to evaluate that expression.
eg: If a I were to have a string 2*20
, it would return 40.
I've got a program that parses an input of money to an arithmetic equation (e.g. 2×20p
is parsed to 2*20
), but I now need to find a way to evaluate that expression.
eg: If a I were to have a string 2*20
, it would return 40.