Bug#593532: Incorrect doc: finite(NAN) does not return nonzero
Package: glibc-doc
Version: 2.11.2-2
The (e)glibc manual has the following passage:
@comment math.h
@comment BSD
@deftypefun int finite (double @var{x})
@comment math.h
@comment BSD
@deftypefunx int finitef (float @var{x})
@comment math.h
@comment BSD
@deftypefunx int finitel (long double @var{x})
This function returns a nonzero value if @var{x} is finite or a ``not a
number'' value, and zero otherwise.
@end deftypefun
This is incorrect. These functions should, and do, return zero if passed
a NaN value.
Reply to: