Re: [Tutor] Parsing and evaluating user input

2013-01-09 Thread Oscar Benjamin
On 9 January 2013 11:20, Timo wrote: > I'm having trouble finding a safe way to parse and evaluate user input in my > program. > > In my app, I'm using a calculation like this: > (a / b) * 100 > The user should be able to override this and their preference is stored in a > configuration file for

[Tutor] Parsing and evaluating user input

2013-01-09 Thread Timo
I'm having trouble finding a safe way to parse and evaluate user input in my program. In my app, I'm using a calculation like this: (a / b) * 100 The user should be able to override this and their preference is stored in a configuration file for later use. So I now have a string with the use