[#BloombergLP-bsls-TimeInterval_RepTraits-k_IS_FLOAT]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/TimeInterval_RepTraits.adoc[TimeInterval&lowbar;RepTraits]::k&lowbar;IS&lowbar;FLOAT
:relfileprefix: ../../../
:mrdocs:

True if `REP` is a floating&hyphen;point type&period;

== Synopsis

Declared in `&lt;bsls&lowbar;timeinterval&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool const k&lowbar;IS&lowbar;FLOAT = std&colon;&colon;is&lowbar;floating&lowbar;point&lt;REP&gt;&colon;&colon;value
                           &verbar;&verbar; std&colon;&colon;chrono&colon;&colon;treat&lowbar;as&lowbar;floating&lowbar;point&lt;REP&gt;&colon;&colon;value;
----

== Description

This compile time constant is `true` if the `REP` (template type argument) is indicated to be a floating point type by the underlying library&period; Otherwise, if the underlying library does not consider `REP` floating point anywhere (see note), `k&lowbar;IS&lowbar;FLOAT` is `false`&period; Note that to cover all scenarios we need to examine _two_ traits&period; The first one that tells if the representation type is a floating point (arithmetic) type or not (from `&lt;type&lowbar;traits&gt;`), and another that tells that representation type is considered a floating point type from the `std&colon;&colon;chrono` perspective&period; Formally the second one just duplicates the first one, but _in theory_ either can be specialized to be true, independently&period; Also note that conversions from `std&colon;&colon;chrono&colon;&colon;duration` with a floating point representation to `bsls&colon;&colon;TimeInterval` are _not_ supported for now&period;


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