C Tutorial/math.h/isunordered
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.
#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;
}
isunordered(1.0, 2.0) 0 isunordered(1.0, 1.0) 0 isunordered(2.0, 1.0) 0