intel / webapps-scientific-calculator

Apache License 2.0
27 stars 33 forks source link

Rounding to the last digit? #19

Open HageMaster3108 opened 10 years ago

HageMaster3108 commented 10 years ago

All Hardware scientific calculators I know round decimals for the last digit in a decimal. e.g. if you divide 2 by 3 you would get 0.6666666667 instead of 0.6666666666 (obviously depending on the number of total digits)

I wonder whether this can (or should!) be done in this implementation as well as it as what users are probably used to?

Guess this could solve problems like in issue #18 in many cases?

davidmaxwaterman commented 10 years ago

Yes, you're probably correct. Unfortunately, this app (as with the other 'webapps-*') is mostly about demonstrating technologies[1] rather than producing a commercially viable application in its own right. Active development has mostly ceased, but I (or other of the primary developers) may spend some spare time to correct these issues, so I do appreciate them being filed. However, in that same light, pull requests are welcomed even more ;)

[1] https://01.org/html5webapps - although, of course, it is better that they work properly/as generally expected.