View Single Post
Old 12-13-2012, 01:45 PM   PM User | #16
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 453 Times in 451 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
you could avoid all of that (and maintain operator priority) by splitting the string on the operators and solving the equations in the desired order
xelawho is offline   Reply With Quote