Skip to content

mp_units::utility::fold_conversion_uncertainty

Adds the uncertainty of a unit conversion factor to the value

Synopsis

Declared in <mp-units/utility/uncertain.h>

[[nodiscard]] constexpr uncertain fold_conversion_uncertainty(uncertain const& val, long double relative_uncertainty);

Description

Implements the fold_conversion_uncertainty customization point. The two are taken as independent, so they combine in quadrature: σ' = √(σ² + (x·u_r)²).

Return Value

Note

The return value should not be discarded.