Script Preparation code:
Tests:
  • Number(v.toPrecision(p))

  • _p=Math.pow(10,p-Math.ceil(Math.log10(v)));Math.round(v*_p)/_p

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Number(v.toPrecision(p))
    _p=Math.pow(10,p-Math.ceil(Math.log10(v)));Math.round(v*_p)/_p

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!