fn change(a: f64, b: f64, relative: bool) -> f64 {
    if relative {
        (a - b).abs() / b
    } else {
        (a - b).abs()
    }
}
/// Returns relative or absolute change between two measurements.
Returns relative or absolute change between two measurements.
Returns relative or absolute change between two measurements .
fn change(a: f64, b: f64, relative: bool) -> f64 {
    if relative {
        (a - b).abs() / b
    } else {
        (a - b).abs()
    }
}
fn change ( a : f64 , b : f64 , relative : bool ) -> f64 { if relative { ( a - b ) . abs ( ) / b } else { ( a - b ) . abs ( ) } }
Returns relative or absolute change between two measurements.
Returns relative or absolute change between two measurements .
a
f64
b
f64
relative
bool
a
f64
b
f64
relative
bool