(s: Sign | undefined)
| 89 | * Sign `s` is < 0. |
| 90 | * |
| 91 | * :::info[Note] |
| 92 | * Returns `undefined` for cases where the given sign is either non-applicable to real numbers |
| 93 | * ('nan', 'unsigned', 'complex-infinity') or does not convey enough information (e.g. 'real', |
| 94 | * 'not-zero', 'real-not-zero', 'non-positive'). |
| 95 | * ::: |
| 96 | * |
| 97 | * @param s |
| 98 | */ |
| 99 | export function negativeSign(s: Sign | undefined): boolean | undefined { |
| 100 | if (s === undefined) return undefined; |
| 101 | |
| 102 | if (s === 'negative') return true; |
| 103 | if ((['non-negative', 'zero', 'positive'] as Sign[]).includes(s)) |
no outgoing calls
no test coverage detected