EN JA
NEXTAFTER(3)
NEXTAFTER(3) FreeBSD Library Functions Manual NEXTAFTER(3)

名称

nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl次の表示可能な値

ライブラリ

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

解説

これらの関数は、方向 y 中の x から次のマシン表示可能な番号を返します。

関連項目

ieee(3), math(3)

規格

nextafter(), nextafterf(), nextafterl(), nexttoward(), nexttowardf() と nexttowardl() ルーチンは、 ISO/IEC 9899:1999 (“ISO C99”) に適合しています。それらは、 nextafter( +0.0,, -0.0) が -0.0 を返し、 nextafter( -0.0,, +0.0) が +0.0 を返すように拡張して、 IEEE Std 754-1985 によって推薦された Nextafter 関数を実装しています。

歴史

nextafter() 関数は、 4.3BSD で登場し、 nextafterf() FreeBSD 2.0 で登場しました。
May 4, 2005 FreeBSD