[#BloombergLP-bdldfp-DecimalImpUtil-classify-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::classify
:relfileprefix: ../../../
:mrdocs:

Return the floating&hyphen;point classification of `x`&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
classify(xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x);
----

== Description

Return the integer value that respresents the floating point classification of the specified `x` value as follows&colon;

&ast; if `x` is NaN, return FP&lowbar;NAN&semi; &ast; otherwise if `x` is positive or negative infinity, return `FP&lowbar;INFINITE`&semi; &ast; otherwise if `x` is a subnormal value, return `FP&lowbar;SUBNORMAL` &ast; otherwise if `x` is a zero value, return `FP&lowbar;ZERO` &ast; otherwise return `FP&lowbar;NORMAL`

Note that the mention `FP&lowbar;XXX` constants are C99 standard macros and they are defined in the math&period;h (cmath) standard header&period; On systems that fail to define those standard macros we define the in this component as public macros&period;

== Return Value

the floating&hyphen;point classification of `x`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| value to classify
|===


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