When I do, for example, 14 * 0.2, I get 2.8000000000000003 instead of 2.8.
Why does it do this, and how can I fix it?
According to this page, Strings automatically cut trailing 0s off, so I tried
var foo = 14 * 0.2;
console.log(foo.toFixed(3).toString());
but it still comes back with trailing 0s (2.800).