MicrOS
nexttoward.c File Reference
#include "../math.h"

Functions

double nexttoward (double x, long double y)
 Next representable value toward precise value. More...
 

Function Documentation

◆ nexttoward()

double nexttoward ( double  x,
long double  y 
)

Next representable value toward precise value.

The nexttoward functions are equivalent to the nextafter functions except that the second parameter has type long double and the functions return y converted to the type of the function if x equals y.

Parameters
xBase value.
yValue toward which the return value is approximated.
Returns
The next representable value after x in the direction of y.