Bitwise vs Math.round

Edit on GitHub

Setup

Tests

  • Bitwise

    var x = ~~(102.45 + 0.5)
  • Math.round

    var x = Math.round(102.45 + 0.5)