a-n-d-r-3-w / calculator

An arithmetic calculator implemented using JavaScript, HTML, LESS, Dojo Toolkit, and QUnit
http://a-n-d-r-3-w.github.io/calculator/
0 stars 0 forks source link

3, ×, ÷, = displays NaN instead of 3 #16

Closed a-n-d-r-3-w closed 10 years ago

a-n-d-r-3-w commented 10 years ago

It seems that when the user presses two operators in succession, the code assumes the active operand is zero, and it inserts this zero into the calculator in between the two operators, even though the user did not explicitly press zero.

Related use cases: