(n: bigint)
| 184 | |
| 185 | /** Absolute value of a bigint. */ |
| 186 | export function bigintAbs(n: bigint): bigint { |
| 187 | return n < 0n ? -n : n; |
| 188 | } |
| 189 | |
| 190 | /** Sign of a bigint: -1n, 0n, or 1n. */ |
| 191 | export function bigintSign(n: bigint): bigint { |
no outgoing calls
no test coverage detected