Floating point number to precision.

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
toPrecision
parseFloat(Math.PI.toPrecision(49))
ready
Math.round
Math.round(Math.PI * 1e49) / 1e49
ready

Revisions

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