www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/06/01:11:32

Date: Wed, 6 Nov 1996 08:02:03 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: John Fulton <jackf AT preferred DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: IEEE function nextafter
In-Reply-To: <199611051948.OAA30136@preferred.com>
Message-Id: <Pine.SUN.3.91.961106080037.304E-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019