nextafternextafterfnextafterlnexttowardnexttowardfnexttowardl
- next representable value
LIBRARY
Lb libm
SYNOPSIS
#include <math.h> double
nextafter (double x double y); float
nextafterf (float x float y); long double
nextafterl (long double x long double y); double
nexttoward (double x long double y); float
nexttowardf (float x long double y); long double
nexttowardl (long double x long double y);
DESCRIPTION
These functions
return the next machine representable number from
Fa x
in direction
Fa y .
The
nextafter (,);
nextafterf (,);
nextafterl (,);
nexttoward (,);
nexttowardf (,);
and
nexttowardl ();
routines conform to
St -isoC-99 .
They implement the Nextafter function recommended by
St -ieee754 ,
with the extension that
nextafter (+0.0, -0.0);
returns
-0.0
and
nextafter (-0.0, +0.0);
returns
+0.0
HISTORY
The
nextafter ();
function appeared in
BSD 4.3
and
nextafterf ();
appeared in
Fx 2.0 .