mozilla-b2g/gaia — pull request #5172 by adityab (2012-09-25 20:55:51+00:00)
Title: Calculator sanity fixes

This patch rewrites the old value input code and simplifies it.

It fixes several bugs:

* #2574, #1481 Multiple decimal points can now no longer occur in the same number.
* #5059 If there's no number yet and you click '.', the new number now starts with '0.' instead of just a dot.
* The calculated output number is now pushed into the stack as a string instead of an integer, so it can now be reused as input.

There's some code clean-up too, particularly related to some spaghetti flags introduced by #2574.