isnormal
判斷浮點值是否為一般值。
語法
int isnormal(
/* floating-point */ x
); /* C-only macro */
template <class FloatingType>
inline bool isnormal(
FloatingType x
) throw(); /* C++-only function template */
參數
x
要測試的浮點值。
傳回值
isnormal
如果引數 x
不是零、次正規、無限或 NaN,則會傳回非零值 ( true
在 C++ 程式碼中)。 否則, isnormal
會傳回 0 ( false
在 C++ 程式碼中)。
備註
isnormal
在編譯為 C 時是宏,在編譯為 C++ 時為內嵌函式範本。
需求
函式 | 必要的標頭 (C) | 必要的標頭 (C++) |
---|---|---|
isnormal |
<math.h> | <math.h > 或 < cmath> |
如需相容性詳細資訊,請參閱相容性。
另請參閱
數學和浮點支援
isfinite
, _finite
, _finitef
isinf
isnan
, _isnan
, _isnanf
_fpclass
, _fpclassf
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應