( numericApproximation: boolean | undefined, ...ops: ReadonlyArray<Expression | undefined | null> )
| 80 | * non-number-literal expressions — see `isExactNumber`) do not trigger this |
| 81 | * on their own; call sites should still run their own exact-value |
| 82 | * reductions (poles, `f(0)`, …) before consulting this. |
| 83 | * |
| 84 | * Mixing exact and inexact operands numericizes the whole call (float |
| 85 | * contagion), matching `Add`/`Multiply`'s numeric-literal folding. |
| 86 | */ |
| 87 | export function shouldNumericize( |
| 88 | numericApproximation: boolean | undefined, |
| 89 | ...ops: ReadonlyArray<Expression | undefined | null> |
| 90 | ): boolean { |
| 91 | if (numericApproximation) return true; |
no test coverage detected