Test name | Executions per second |
---|---|
trunc | 241060112.0 Ops/sec |
round | 258677504.0 Ops/sec |
floor | 243322448.0 Ops/sec |
Math.trunc(13.37123123 * 1_000_000) / 1_000_000
Math.trunc(13.67123123 * 1_000_000) / 1_000_000
Math.round(13.37123123, 6)
Math.round(13.67123123, 6)
Math.floor(13.37123123, 6)
Math.floor(13.67123123, 6)