Deprecated. Returns the numerical value of this quantity point on the scale of another unit, truncating if inexact.

Synopsis

Declared in <mp‐units/framework/quantity_point.h>

template<UnitOf<quantity_spec> U>
requires (PO == default_point_origin®) && detail::ExplicitlyCastable<unit, U{}, rep>
[[deprecated("2.6.0: use `numerical_value_in(unit, policy)` with a rounding policy (e.g. `truncated`) instead"), nodiscard]]
constexpr
RepresentationOf<quantity_spec> auto
force_numerical_value_in(U u) const noexcept;
Warning

Deprecated: 2.6.0: use `numerical_value_in(unit, policy)` with a rounding policy (e.g. `truncated`) instead. Use of this entity is allowed but discouraged.

Return Value

The numerical value expressed in u, measured from the default point origin.

Note

The return value should not be discarded.

Parameters

Name

Description

u

the target unit

Created with MrDocs