[#mp_units-utility-operator_slash-05] = xref:mp_units.adoc[mp_units]::xref:mp_units/utility.adoc[utility]::operator/ :relfileprefix: ../../ :mrdocs: Divides a floating‐point value by a `safe_int`. == Synopsis Declared in `<mp‐units/utility/safe_int.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr auto operator/( U lhs, xref:mp_units/utility/safe_int-07.adoc[safe_int] rhs) requires requires { lhs / static_cast<U>(rhs.value_); }; ---- == Return Value the quotient of `lhs` and the wrapped value [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Template Parameters [cols="1,4"] |=== | Name| Description | *U* | a floating‐point‐like type (`treat_as_floating_point<U>` is `true`) |=== == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | the floating‐point value | *rhs* | the `safe_int` to divide by |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#