fixed

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
fixed and parseFloat
const a = 10.11111111111;
parseFloat(a.toFixed(3))
ready
another
const a = 10.11111111111;
+a.toFixed(3)
ready
exp
const a = 10.11111111111;
+(Math.round(a + "e+3")  + "e-3")
ready

Revisions

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