pub fn to_mils(value: f64, unit: LengthUnit) -> f64
Convert from user units to mils (internal canonical unit).