C Tutorial/math.h/isunordered — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:32, 25 мая 2010
int isunordered(a, b): Returns 1 if a and b are unordered relative to each other; zero is returned if a and b are ordered.
<source lang="cpp">#include <stdio.h>
- include <math.h>
int main(void) {
printf("isunordered(1.0, 2.0) %d\n", isunordered(1.0, 2.0)); printf("isunordered(1.0, 1.0) %d\n", isunordered(1.0, 1.0)); printf("isunordered(2.0, 1.0) %d\n", isunordered(2.0, 1.0)); return 0;
}</source>
isunordered(1.0, 2.0) 0 isunordered(1.0, 1.0) 0 isunordered(2.0, 1.0) 0