Chapter Contents

Previous

Next
isunordered

isunordered



Floating-point unordered comparison

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <math.h>

   int isunordered(floating x, floating y);


DESCRIPTION

isunordered returns whether its two arguments, x and y, may be compared. It returns non-zero if either argument is a NaN (Nan's cannot be compared), or returns zero if neither argument is a NaN. No floating point exception is raised if an argument is a NaN.


RETURN VALUE

1 if x and y are unordered, and zero otherwise.


RELATED FUNCTIONS

isgreater, isgreaterequal, isless, islessequal, islessgreater


SEE ALSO

"Mathematical Functions" in Chapter 2, "Function Categories"


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.