GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NEXTAFTER(3) FreeBSD Library Functions Manual NEXTAFTER(3)

nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl
next representable value

Math Library (libm, -lm)

#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);

These functions return the next machine representable number from x in direction y.

ieee(3), math(3)

The nextafter(), nextafterf(), nextafterl(), nexttoward(), nexttowardf(), and nexttowardl() routines conform to ISO/IEC 9899:1999 (“ISO C99”). They implement the Nextafter function recommended by IEEE Std 754-1985, with the extension that nextafter(+0.0, -0.0) returns -0.0, and nextafter(-0.0, +0.0) returns +0.0.

The nextafter() function appeared in 4.3BSD, and nextafterf() appeared in FreeBSD 2.0.
May 4, 2005 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.