modf#
Synopsis#
#include <math.h>
double modf(double x, double *iptr);
float modff(float value, float *iptr);
long double modfl(long double value, long double *iptr);
Status#
Partially implemented
Conformance#
IEEE Std 1003.1-2017
Description#
These functions shall break the argument x into integral and fractional parts, each of which has the same sign as the
argument. It stores the integral part as a double (for the modf() function), a float (for the modff() function), or
a long double (for the modfl() function), in the object pointed to by iptr.
Return value#
Upon successful completion, these functions shall return the signed fractional part of x.
- If x is - NaN, a- NaNshall be returned, and *iptr shall be set to a- NaN.
- If x is - ±Inf,- ±0shall be returned, and *iptr shall be set to- ±Inf.
Errors#
No errors are defined.
Tests#
Untested
Known bugs#
None