[#mp_units-treat_as_floating_point]
= xref:mp_units.adoc[mp&lowbar;units]::treat&lowbar;as&lowbar;floating&lowbar;point
:relfileprefix: ../
:mrdocs:

Specifies if a value of a type should be treated as a floating&hyphen;point value

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;customization&lowbar;points&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Rep&gt;
constexpr bool treat&lowbar;as&lowbar;floating&lowbar;point = std&colon;&colon;chrono&colon;&colon;treat&lowbar;as&lowbar;floating&lowbar;point&lowbar;v&lt;value&lowbar;type&lowbar;t&lt;Rep&gt;&gt;;
----

== Description

This type trait should be specialized for a custom representation type to specify that values of this type should be treated by the library as a floating&hyphen;point ones which will enable implicit conversions between quantities&period;

== Template Parameters

[cols="1,4"]
|===
|Name|Description

| *Rep*
| a representation type for which a type trait is defined
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
