Date: Wed, 6 Nov 1996 08:02:03 +0200 (IST) From: Eli Zaretskii To: John Fulton Cc: djgpp AT delorie DOT com Subject: Re: IEEE function nextafter In-Reply-To: <199611051948.OAA30136@preferred.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.