Precision Back

  • JavaScrpit numbers also have the same problem of c++, and can approximate 0.1 very closely. But the fact that this number cannot be represented exactly can lead to problems.
var x = .3 - .2;
var y = .2 - .1;
x == y;        //false: the two values are not the same!
x == 0.1;    //false
y == 0.1;    //true
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.