(input: number)
| 36 | const bigint1e9 = BigInt(1_000_000_000) |
| 37 | |
| 38 | const roundTiesAwayFromZero = (input: number): bigint => |
| 39 | BigInt(input < 0 ? Math.ceil(input - 0.5) : Math.floor(input + 0.5)) |
| 40 | |
| 41 | const roundMillisToNanos = (millis: number): bigint => roundTiesAwayFromZero(millis * 1_000_000) |
| 42 |
no test coverage detected