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

Entering many digits causes the number to exceed the div boundary #13

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

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

Should be able to resolve this by changing the display's CSS overflow property's value to "hidden".

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

Changing the overflow property is insufficient to resolve the issue. Ideally, we can automatically show numbers in scientific notation when necessary.

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

At least show an error or stop user input after a certain number digits. And limit the display to 20 decimal places.

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

Solution: Limit input to 20 characters. The output takes care of itself. (Why?)