NAN
From cppreference.net
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Common mathematical functions
| Nearest integer floating point operations | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Floating point manipulation functions | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
| Classification and comparison | |||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
| Types | |||||||||||||||||||||||||||||||||||||||||
| Macro constants | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
Défini dans l'en-tête
<cmath>
|
||
|
#define NAN /*défini par l'implémentation*/
|
(depuis C++11) | |
La macro
NAN
s'étend à une expression constante de type
float
qui évalue à une valeur silencieuse non numérique (QNaN). Si l'implémentation ne prend pas en charge les QNaNs, cette macro constante n'est pas définie.
Notes
Il existe de nombreuses valeurs NaN différentes, distinguées par leurs charges utiles et leurs bits de signe. Le contenu de la charge utile et le bit de signe du NaN généré par la macro
NAN
sont définis par l'implémentation.
Voir aussi
|
(C++11)
(C++11)
(C++11)
|
non-un-nombre (NaN)
(fonction) |
|
(C++11)
|
vérifie si le nombre donné est NaN
(fonction) |
|
[static]
|
identifie les types à virgule flottante qui peuvent représenter la valeur spéciale "quiet not-a-number" (NaN)
(constante membre statique publique de
std::numeric_limits<T>
)
|
|
[static]
|
identifie les types à virgule flottante qui peuvent représenter la valeur spéciale "signaling not-a-number" (NaN)
(constante membre statique publique de
std::numeric_limits<T>
)
|
|
[static]
|
retourne une valeur NaN silencieuse du type à virgule flottante donné
(fonction membre statique publique de
std::numeric_limits<T>
)
|
|
[static]
|
retourne une valeur NaN signalée du type à virgule flottante donné
(fonction membre statique publique de
std::numeric_limits<T>
)
|
|
Documentation C
pour
NAN
|
|