https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211376

            Bug ID: 211376
           Summary: isunordered description in isgreater(3) man page is
                    inverted
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Documentation
          Assignee: [email protected]
          Reporter: [email protected]

The description of the `isunordered()` macro states that it returns non-zero if
none of its parameters are NaNs, whereas it actually returns non-zero if any of
its parameters are NaNs.

I propose changing the sentence:

> The isunordered() macro takes arguments x and y and returns non-zero if
> and only if neither x nor y are NaNs.

to read instead:

> The isunordered() macro takes arguments x and y and returns non-zero if
> and only if any of x or y are NaN.

The word 'any' could be replaced with 'one or both' but I think 'either' tends
to have an exclusive connotation so may not be appropriate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"

Reply via email to