quote:
That makes me wonder how you do the calculation and what functions you use... because in most language of today (VB, C++, etc... ) there is already an evaluation function for such things. If you use that, you only need to pass the string and you would never have problems like that....
C++, VB do that ?
quote:
note about using "-": it is best that you don't implement substractions, but only additions! If a minus is used, it should be considered part of the number, not a math-function. If you do this you also wont have problems with: "8 - 5" because your function would calculate "8 + -5", but most importantly, you can do "8 * -5" without any additional coding...
have you test mine ?
quote:
So... I'm realy interested in the method you use...
humm it's a little bit complex to explain (I'm too bad in english!!)
Using a little more advanced parser tree method than
http://www.informit.com/articles/article.asp?p=21484 but it's the same principle...