Number is float

Benchmark created on


Setup

let jsobj = 43.53

Test runner

Ready to run.

Testing in
TestOps/sec
toString + indexOf
jsobj.toString().indexOf('.') == -1
ready
Modulo
jsobj % 1 === 0
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.