AlexFlorides / javascript-calculator

A simple calculator built using HTML, CSS and JavaScript

Home Page:https://alexflorides.github.io/javascript-calculator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Floating-point Precision errors

amolgorithm opened this issue · comments

There were often some errors in the precision of even simple floating-point results.
For example, the application evaluated (0.2)^2 as 0.04000...01, when the application could instead simply keep it as 0.04 .

issue2