INFINITY
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 INFINITY /*défini par l'implémentation*/
|
(depuis C++11) | |
Si l'implémentation prend en charge les infinis en virgule flottante, la macro
INFINITY
s'étend à une expression constante de type
float
qui évalue à l'infini positif ou non signé.
Si l'implémentation ne prend pas en charge les infinis en virgule flottante, la macro
INFINITY
s'étend à une valeur positive qui est garantie de provoquer un dépassement de capacité d'un
float
à la compilation, et l'utilisation de cette macro génère un avertissement du compilateur.
Voir aussi
|
(C++11)
|
vérifie si le nombre donné est infini
(fonction) |
|
(C++11)
(C++11)
|
indique la valeur de dépassement de capacité pour
float
,
double
et
long
double
respectivement
(constante macro) |
|
[static]
|
identifie les types à virgule flottante qui peuvent représenter la valeur spéciale "infini positif"
(constante membre publique statique de
std::numeric_limits<T>
)
|
|
[static]
|
renvoie la valeur de l'infini positif pour le type à virgule flottante donné
(fonction membre publique statique de
std::numeric_limits<T>
)
|
|
Documentation C
pour
INFINITY
|
|