isgreaterequal
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
헤더 파일에 정의됨
<math.h>
|
||
|
#define isgreaterequal(x, y) /* implementation defined */
|
(C99부터) | |
부동소수점 숫자 x 가 부동소수점 숫자 y 보다 크거나 같은지 확인하며, 부동소수점 예외를 설정하지 않습니다.
목차 |
매개변수
| x | - | 부동소수점 값 |
| y | - | 부동소수점 값 |
반환값
x >= y 인 경우 0이 아닌 정수 값, 0 그 외의 경우.
참고 사항
부동 소수점 숫자에 대한 내장 operator >= 는 하나 또는 두 인수가 NaN인 경우 FE_INVALID 를 발생시킬 수 있습니다. 이 함수는 operator >= 의 "quiet" 버전입니다.
예제
#include <math.h> #include <stdio.h> int main(void) { printf("isgreaterequal(2.0,1.0) = %d\n", isgreaterequal(2.0, 1.0)); printf("isgreaterequal(1.0,2.0) = %d\n", isgreaterequal(1.0, 2.0)); printf("isgreaterequal(1.0,1.0) = %d\n", isgreaterequal(1.0, 1.0)); printf("isgreaterequal(INFINITY,1.0) = %d\n", isgreaterequal(INFINITY, 1.0)); printf("isgreaterequal(1.0,NAN) = %d\n", isgreaterequal(1.0, NAN)); return 0; }
가능한 출력:
isgreaterequal(2.0,1.0) = 1 isgreaterequal(1.0,2.0) = 0 isgreaterequal(1.0,1.0) = 1 isgreaterequal(INFINITY,1.0) = 1 isgreaterequal(1.0,NAN) = 0
참고문헌
- C23 표준 (ISO/IEC 9899:2024):
-
- 7.12.14.2 The isgreaterequal 매크로 (p: TBD)
-
- F.10.11 비교 매크로 (p: TBD)
- C17 표준 (ISO/IEC 9899:2018):
-
- 7.12.14.2 The isgreaterequal 매크로 (p: TBD)
-
- F.10.11 비교 매크로 (p: TBD)
- C11 표준 (ISO/IEC 9899:2011):
-
- 7.12.14.2 isgreaterequal 매크로 (p: 259-260)
-
- F.10.11 비교 매크로 (p: 531)
- C99 표준 (ISO/IEC 9899:1999):
-
- 7.12.14.2 isgreaterequal 매크로 (p: 240-241)
참고 항목
|
(C99)
|
첫 번째 부동 소수점 인수가 두 번째 인수보다 작거나 같은지 확인합니다
(함수 매크로) |
|
C++ documentation
for
isgreaterequal
|
|