-
Javascript-Calculator
Calculator created with Javascript (including Big.js), CSS, & HTML (by proper-show)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
So I'm having a little trouble with my calculator that I've made. When I add a decimal to itself, it will do the math correctly, but occasionally come up with a number that is close to the right answer, but not the right answer. The example I have in the screenshot is that I'm adding pressing 1.1 then + then =. It returns 2.2 the first time I press =, 3.300000000003 the second time I press =, 4.4 the third, 5.5 the 4th, 6.6 the 5th, and finally 7.6999999999 the 6th. Whats going on here? Github Link Here
In the future, JavaScript will hopefully get base 10 arithmetic: https://github.com/tc39/proposal-decimal