Function smartnoise_runtime::components::cast::cast_float[][src]

pub fn cast_float(data: &Array) -> Result<ArrayD<Float>>

Cast data to type f64.

If data are bool, map true => 1. and false => 0.

If data are String, attempt to parse as f64 and return NAN otherwise.

If data are i64, convert integers to their f64 representation.

Arguments

Return

Data cast to Float.