(n: bigint)
| 567 | * @internal |
| 568 | */ |
| 569 | export const roundTerminal = (n: bigint): bigint => { |
| 570 | const pos = n >= bigint0 ? 0 : 1 |
| 571 | return Number(`${n}`[pos]) < 5 ? bigint0 : bigint1 |
| 572 | } |
| 573 | |
| 574 | /** |
| 575 | * Divides `BigDecimal`s safely. |
no test coverage detected