Skip to content

Divided values still unnecesarily returned with the DivQuantities type, meaning they need to be converted before use.

Divided quantities cannot immediately be used:

let var1 = (1.0.rad() / 1.0.s()).to_radps();

Gives the error:

method not found in `Value<f64, DivQuantities<UniformQuantities<qunit::::angle::Angle::{constant#0}>, UniformQuantities<qunit::::time::Time::{constant#0}>>>`

and needs to be rectified with

let var1 = (1.0.rad() / 1.0.s()).as_equiv().to_radps();

As far as I know this is old and not needed anymore.