MODF(3M) | Mathematical Library Functions | MODF(3M) |

c99 [flag... ]file...-lm[library... ] #include <math.h>doublemodf(doublex,double *iptr);

floatmodff(floatx,float *iptr);

long doublemodfl(long doublex,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 |