(n: bigint)
| 524 | * @internal |
| 525 | */ |
| 526 | export const roundTerminal = (n: bigint): bigint => { |
| 527 | const pos = n >= bigint0 ? 0 : 1 |
| 528 | return Number(`${n}`[pos]) < 5 ? bigint0 : bigint1 |
| 529 | } |
| 530 | |
| 531 | /** |
| 532 | * Divides `BigDecimal`s safely. |
no test coverage detected