Test case name | Result |
---|---|
toFixed(4) someFloat.toFixed(4); someFloat.t | |
(Math.round(*10000)/10000).toString() |
Test name | Executions per second |
---|---|
toFixed(4) someFloat.toFixed(4); someFloat.t | 3563536.2 Ops/sec |
(Math.round(*10000)/10000).toString() | 6178558.5 Ops/sec |