|Linux & Unix Commands - Search Man Pages
MODF(3) BSD Library Functions Manual MODF(3)
modf -- return integral and fractional parts
modf(double value, double *iptr);
modff(float value, float *iptr);
The modf() and modff() break value into integral and fractional parts, each of which has the
same sign as the argument. They return the fractional part, and store the integral part (as
a floating-point number) in the object pointed to by iptr
modf(+-infinity, iptr) returns +-0 and stores +-infinity in the object pointed to by iptr.
modf(NaN, iptr) returns a NaN and stores a NaN in the object pointed to by iptr.
frexp(3), ldexp(3), math(3)
The modf() and modff() functions conform to ISO/IEC 9899:1999(E).
BSD July 24, 2003 BSD
All times are GMT -4. The time now is 07:17 AM.