Run details:
Mozilla/5.0 (Linux; Android 8.1.0; SM-J327VPP) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Mobile Safari/537.36
Chrome Mobile 89
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
trunc 267237.5 Ops/sec
round 269071.0 Ops/sec
floor 270194.0 Ops/sec
parseFloat to int 129412.3 Ops/sec
Tests:
  • trunc

  • round

  • floor

  • parseFloat to int


;