#include <math.h>float modff(float num, float *i);double modf(double num, double *i); long double modfl(long double num, long double *i); 

modff( ) and modfl( ) were added by C99.

The modf( ) family of functions decomposes num into its integer and fractional parts. The functions return the fractional portion and place the integer part in the variable pointed to by i.

Related functions are frexp( ) and ldexp( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: