Good question. In addition to that, what is the best way to convert a string that contains a number into a 'real' number?
Yes, one could loop through it and evaluate with multiple
if .. then's ..., but that would be kind of excessive ...
A parseFloat function could certainly help, I will add that to my todo list.
mynumber = mystring * 1
The string will be automatically cast to a number when you try to apply an arithmetic operator to it (unless the operator is +, which also serves to concatenate strings).