[Bug 211376] isunordered description in isgreater(3) man page is inverted

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 26 04:43:20 UTC 2016


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: freebsd-doc at FreeBSD.org
          Reporter: parakleta at darkreality.org

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.


More information about the freebsd-doc mailing list