[]Function lumol::units::to

pub fn to(value: f64, unit: &str) -> Result<f64, ParseError>

Convert the numeric value val (in internal units) to the unit unit.

use lumol_core::units;
let real = units::to(10.0, "A").unwrap();
assert!(real == 10.0);