coerce_to_number

Function coerce_to_number 

Source
pub fn coerce_to_number(value: &CellValue) -> Result<f64>
Expand description

Coerce a CellValue to f64. Booleans become 0/1, empty becomes 0, numeric strings are parsed. Non-numeric strings yield an error.