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

Functions

float nextafterf (float x, float y)
 Next representable value. More...
 

Function Documentation

◆ nextafterf()

float nextafterf ( float  x,
float  y 
)

Next representable value.

The nextafterf functions determine the next representable value, in the type of the function, after x in the direction of y, where x and y are first converted to the type of the function. The nextafterf functions return y if x equals y. A range error may occur if the magnitude of x is the largest finite value representable in the type and the result is infinite or not representable in the type.

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