fn coerce_to_f64(value: &Value) -> Result<f64, EvalexprError>Expand description
Coerce a Value to f64, accepting Int / Float / Boolean.
Value::as_number() only handles Int and Float, so any builtin driven from
a Boolean operand (cmp result, band/bor arg after
[rewrite_logical_to_bandbor]) trips on “Expected Number”. MD2 EEL2’s
logical/numeric operators all collapse Boolean → 0.0/1.0, so we mirror
that for our registered helpers (band, bor, bnot).