R
Rodrigo Ferreira
I have a textbox and when i click in ENTER if i have a math expression
inside the textbox, it has to calculate the result.
Supose i have:
123+456+789
My code return well this result,
but if i have 123+456*789 occurrs a problem because first calculates de
123+456 and then 579*789! The code doesn't treat the priorities...
The problem increases with the lenght of the expression....
123+456*45+4/4+4*4536-45 !?!??!
Anyone knows how i can solve my problem? The class Math can help my problem?
Greetings,
Rodrigo Ferreira
inside the textbox, it has to calculate the result.
Supose i have:
123+456+789
My code return well this result,
but if i have 123+456*789 occurrs a problem because first calculates de
123+456 and then 579*789! The code doesn't treat the priorities...
The problem increases with the lenght of the expression....
123+456*45+4/4+4*4536-45 !?!??!
Anyone knows how i can solve my problem? The class Math can help my problem?
Greetings,
Rodrigo Ferreira