Mail Archives: djgpp/1996/11/06/01:11:32
On Tue, 5 Nov 1996, John Fulton wrote:
> djgpp/include/libm/math.h contains the prototype
>
> double nextafter(double, double);
>
> The second argument specifies the direction to determine the
> next representable number after the first argument. Would
> some kind soul please tell me the possible values of the
> second argument and their interpretation? Thanks.
From the `nextafter' man page on the nearest Unix box:
nextafter() returns the next representable double-precision
floating-point value following value1 in the direction of
value2. Thus, if value2 is less than value1, nextafter()
returns the largest representable floating-point number less
than value1.
- Raw text -