String math?

Put your problem here if it does not fit any of the other categories.

String math?

Postby Maoukiji » Fri Jul 03, 2009 7:07 pm

I'm having a pretty big problem with android. I currently accept input via buttons - these buttons add the values of the numbers (Operators, and decimals too) to a text box and a string variable. The issue I'm having is the fact that android doesn't have an eval() function and I have no clue how to go about executing this string as an equation.

Does anyone have any ideas on how to do this? The equations won't exactly be complex, however there will be decimal values that go beyond double's limit (To the left of the decimal), and I honestly don't remember how to handle that other than with an eval...
Maoukiji
Freshman
Freshman
 
Posts: 2
Joined: Wed Jul 01, 2009 12:54 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: MSNbot Media and 19 guests