According to my code the following statement returns true. Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284)
I tried converting everything to type Number that didn't help. Getting ride of the abs() makes the calculation work correctly but then I don't have the absolute value. Thoughts? - Daniel Freiman

