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 | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
|
헤더 파일에 정의됨
<cmath>
|
||
|
#define INFINITY /*implementation defined*/
|
(C++11부터) | |
구현이 부동 소수점 무한대를 지원하는 경우, 매크로
INFINITY
는 양의 무한대 또는 부호 없는 무한대로 평가되는
float
타입의 상수 표현식으로 확장됩니다.
구현체가 부동 소수점 무한대를 지원하지 않는 경우, 매크로
INFINITY
는 컴파일 시간에
float
이 반드시 오버플로우되는 양의 값으로 확장되며, 이 매크로의 사용은 컴파일러 경고를 생성합니다.
참고 항목
|
(C++11)
|
주어진 숫자가 무한한지 검사합니다
(함수) |
|
(C++11)
(C++11)
|
각각
float
,
double
및
long
double
에 대한 오버플로 값을 나타냅니다
(매크로 상수) |
|
[static]
|
"양의 무한대" 특수 값을 표현할 수 있는 부동소수점 타입을 식별합니다
(
std::numeric_limits<T>
의 public static 멤버 상수)
|
|
[static]
|
주어진 부동소수점 타입의 양의 무한대 값을 반환합니다
(
std::numeric_limits<T>
의 public static 멤버 함수)
|
|
C 문서
for
INFINITY
|
|