nextafter(3M)nextafter(3M)NAMEnextafter(), nextafterf(), nextafterl(), nextafterw(), nextafterq(),
nexttoward(), nexttowardf(), nexttowardl(), nexttowardw(), nextto‐
wardq() - next representable floating-point values
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function computes the next representable double-precision value
following x in the direction of y. Thus, if y is less than x, returns
the largest representable floating-point number less than x.
The function returns y if x equals y.
The function is equivalent to except that the second parameter has type
and the function returns y converted to the type of the function if x
equals y.
The result of the function is determined in the type of the function,
without loss of range or precision in a floating second argument, whose
type may be wider than the type of the function.
is a versions of it takes arguments and returns a result.
is a version of it takes arguments and returns a result.
is an version of it takes arguments and returns an result.
is equivalent to on HP-UX systems.
is a versions of it takes a first argument and returns a result.
is equivalent to
is an version of it takes an first argument and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use these functions, compile either with the default option or with
the and options.
To use (for Integrity servers) or compile also with the option.
Make sure your program includes Link in the math library by specifying
on the compiler or linker command line.
RETURN VALUE
If x equals y, returns y, and returns y converted to the type of x.
If x or y is NaN, and return NaN.
If x is finite and the correct function value would overflow, and
return (equal to +INFINITY), according to the sign of x, and raise the
overflow exception.
If the return value is denormal and x!=y, these functions raise the
underflow and inexact floating-point exceptions.
ERRORS
If x is finite and the correct function value would overflow, sets to
[ERANGE].
Integrity Server Only
HP-UX functions on Integrity servers do not set by default. For set‐
ting, compile with the option.
SEE ALSOscalbn(3M), math(5).
STANDARDS CONFORMANCE
: SVID3, XPG4.2, ISO/IEC C99 (including Annex F, ``IEC 60559 floating-
point arithmetic'')
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arith‐
metic'')
nextafter(3M)