pub fn convert_units(value: f64, from_unit: &str, to_unit: &str) -> Result<f64>
Public API for unit conversion