Integer points in [round(lo), round(hi)], or `null` if wider than `cap`.
(lo: number, hi: number, cap: number)
| 892 | return { |
| 893 | kind: 'partial', |
| 894 | value: { lo: -Infinity, hi: Math.log10(xVal.hi) }, |
| 895 | domainClipped: 'lo', |
| 896 | }; |
| 897 | } |
| 898 | |
| 899 | /** |
| 900 | * Base-2 logarithm. |
| 901 | */ |
| 902 | function log2Raw(x: Interval | IntervalResult): IntervalResult { |
| 903 | const unwrapped = unwrapOrPropagate(x); |
| 904 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 905 | const [xVal] = unwrapped; |
no test coverage detected