Forum Bugs

parseInt has 31-bit overflow problems

StoneCypher
      Log.warning(parseInt(2147483646, 10));
      Log.warning(parseInt(2147483647, 10));
      Log.warning(parseInt(2147483648, 10));
      Log.warning(parseInt(2147483649, 10));


Result: attached screenshot.

John Haugeland is http://fullof.bs/

  1. prince31.png6.5 kB
mikeday
In the latest build it returns NaN instead which is... better? :)

We'll see if we can fix this for Prince 8.1.
StoneCypher
Thank you :)

John Haugeland is http://fullof.bs/