Teilen über


isnormal

Bestimmt, ob ein Gleitkommawert ein normaler Wert ist.

Syntax

int isnormal(
   /* floating-point */ x
); /* C-only macro */

template <class FloatingType>
inline bool isnormal(
   FloatingType x
) throw(); /* C++-only function template */

Parameter

x
Der zu testende Gleitkommawert.

Rückgabewert

isnormal gibt einen Nonzero-Wert (true in C++-Code) zurück, wenn das Argument x nicht null, subnormal, unendlich oder naN ist. isnormal Andernfalls wird 0 (false im C++-Code) zurückgegeben.

Hinweise

isnormal ist ein Makro, wenn es als C kompiliert wird, und eine Inlinefunktionsvorlage, die als C++ kompiliert wird.

Anforderungen

Funktion Erforderlicher Header (C) Erforderlicher Header (C++)
isnormal <math.h> <math.h> oder <cmath>

Weitere Informationen zur Kompatibilität finden Sie unter Kompatibilität.

Siehe auch

Mathematische Unterstützung und Gleitkommaunterstützung
isfinite, _finite_finitef
isinf
isnan, _isnan_isnanf
_fpclass, _fpclassf