pub fn convert_to_float(from: &Spectrum) -> Float