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

Functions

long double modfl (long double x, long double *iptr)
 Break into fractional and integral parts. More...
 

Function Documentation

◆ modfl()

long double modfl ( long double  x,
long double *  iptr 
)

Break into fractional and integral parts.

The modfl functions break the argument value into integral and fractional parts, each of which has the same type and sign as the argument. They store the integral part (in floating-point format) in the object pointed to by iptr.

Parameters
xFloating point value to break into parts.
iptrPointer to an object (of the same type as x) where the integral part is stored with the same sign as x.
Returns
The modfl functions return the signed fractional part of value.