Doing calculation in android edtitext on lostfocus

44 Views Asked by At

I'm writing an app the is does a lot of calculating and I'd like to accomplish some calc when I leave an EditText. Nothing fancy, things like entering 7/16 and having 0.4375 as the result or 1.0259 * 7 and having 7.1813 as the result. The function wouldn't be used all the time but would eliminate a couple of steps when needed.

Thanks Steve

1

There are 1 best solutions below

0
On

I asked the wrong question, but the comment posted got me thinking, needed to look at substrings. I've figured out what I need.