MODF(3M) | Mathematical Library Functions | MODF(3M) |
c99 [ flag... ] file... -lm [ library... ] #include <math.h> double modf(double x, double *iptr);
float modff(float x, float *iptr);
long double modfl(long double x, long double *iptr);
If x is NaN, a NaN is returned and *iptr is set to NaN.
If x is ±Inf, ±0 is returned and *iptr is set to ±Inf.
a = modf(x, &iptr) ; x == a+*iptr ;
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Standard |
MT-Level | MT-Safe |
June 20, 2021 | SunOS 5.11 |