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

Functions

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

Function Documentation

◆ nexttowardl()

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

Next representable value toward precise value.

The nexttowardl 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.