Go to your browser's JS console and try these:
-14
// -14
-014
// -12
-24
// -24
-024
// -20
-0024
// -20
012
// 10
Why is this 0-integer construct giving me results that are 2 smaller in absolute value?
Go to your browser's JS console and try these:
-14
// -14
-014
// -12
-24
// -24
-024
// -20
-0024
// -20
012
// 10
Why is this 0-integer construct giving me results that are 2 smaller in absolute value?
"Never write a number with a leading zero (like 07). Some JavaScript versions interpret numbers as octal if they are written with a leading zero." (see: http://www.w3schools.com/js/js_numbers.asp)