OpenBSD manual page server

Manual Page Search Parameters

NEXTAFTER(3) Library Functions Manual NEXTAFTER(3)

nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardlnext representable value

#include <math.h>

nextafter(double x, double y);

nextafterf(float x, float y);

long double
nextafterl(long double x, long double y);

nexttoward(double x, long double y);

nexttowardf(float x, long double y);

long double
nexttowardl(long double x, long double y);

These functions return the next machine representable number from x in direction y. If x equals y, these functions return y.


IEEE Std 754-1985

The nextafter and nextafterf functions appeared in 4.3BSD and NetBSD 1.1, respectively.

June 5, 2013 OpenBSD-current