Skip to content

Latest commit

 

History

History
68 lines (51 loc) · 2.38 KB

fpclass-fpclassf.md

File metadata and controls

68 lines (51 loc) · 2.38 KB
descriptiontitlems.dateapi_nameapi_locationapi_typetopic_typef1_keywordshelpviewer_keywords
Learn more about: _fpclass, _fpclassf
_fpclass, _fpclassf
1/15/2021
_fpclass
_fpclassf
_o__fpclass
_o__fpclassf
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-math-l1-1-0.dll
DLLExport
apiref
fpclass
_fpclass
_fpclassf
math/_fpclass
float/_fpclass
math/_fpclassf
fpclass function
floating-point numbers, IEEE representation
_fpclass function
_fpclassf function

_fpclass, _fpclassf

Returns a value indicating the floating-point classification of the argument.

Syntax

int_fpclass( doublex ); int_fpclassf( floatx ); /* x64 only */

Parameters

x
The floating-point value to test.

Return value

The _fpclass and _fpclassf functions return an integer value that indicates the floating-point classification of the argument x. The classification may have one of the following values, defined in <float.h>.

ValueDescription
_FPCLASS_SNANSignaling NaN
_FPCLASS_QNANQuiet NaN
_FPCLASS_NINFNegative infinity (-INF)
_FPCLASS_NNNegative normalized non-zero
_FPCLASS_NDNegative denormalized
_FPCLASS_NZNegative zero (-0)
_FPCLASS_PZPositive 0 (+0)
_FPCLASS_PDPositive denormalized
_FPCLASS_PNPositive normalized non-zero
_FPCLASS_PINFPositive infinity (+INF)

Remarks

The _fpclass and _fpclassf functions are Microsoft-specific. They're similar to fpclassify, but return more detailed information about the argument. The _fpclassf function is only available when compiled for the x64 platform.

By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.

Requirements

FunctionRequired header
_fpclass, _fpclassf<float.h>

For more compatibility and conformance information, see Compatibility.

See also

Math and floating-point support
isnan, _isnan, _isnanf
fpclassify

close