Extract a numeric value from a FormulaResult, falling back to a caller-supplied default when the result is an error.
Result to inspect.
Number returned when result.kind === 'error'.
result.kind === 'error'
Either result.value or fallback.
result.value
fallback
Convenient for tests that exercise success paths and treat errors as out-of-scope.
Extract a numeric value from a FormulaResult, falling back to a caller-supplied default when the result is an error.