Knowing that: x^2 - 4y^2 = (x - 2y)*(x + 2y)
I wrote the following code:
x = 450000005;
y = 225000002;
n = x * x - 4 * y * y;
m = (x - 2 * y) * (x + 2 * y);
console.log(n, m);
And the output is:
900000032 900000009
So what happens inside JavaScript that makes these two expressions have different results? (It doesn't happen for all numbers!)
