(input: string, scale: 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 | |
| 43 | const parseNanos = (input: string, scale: bigint): bigint => { |
| 44 | const decimalIndex = input.indexOf(".") |
| 45 | if (decimalIndex === -1) return BigInt(input) * scale |
no test coverage detected
searching dependent graphs…