ParseInt vs ParseInt with negation

Edit on GitHub

Parseint

Setup

var a = 2.17232;
var b = 3.1415926535 8979323846;
var c,d;

Tests

  • ParseInt

    c = parseInt(a);
    d = parseInt(b);
  • ParseInt with negation

    c =~~(a);
    d = ~~(b);