<< Previous | Next >> | |
|
float modf( float x, int * n );
Description
- Splits
x
into a fraction and integer,f + n
.Parameters
- x
- Floating-point integer
- n
- An integer
Return value
- The integer part in
*n
and the fractional part satisfies|f| < 1.0
Library
- MATH.LIB
See also
- fmod, ldexp
Dynamic C Functions | << Previous | Next >> | rabbit.com |