Modf - Texas Instruments TMS34010 Reference Manual

C compiler
Hide thumbs Also See for TMS34010:
Table of Contents

Advertisement

Signed Integer and Fraction
Syntax
#include
<math.h>
double modf(va1ue, iptr)
double value;
int
*iptr;
Defined in
modf. obj in rts .lib
modf
Description
The modf function breaks a value into a signed integer and a signed frac-
tion. Each of the two parts has the same sign as the input argument. The
function returns the fractional part of value and stores the integer as a
double at the object pointed to by iptr.
EX8lnple
double value, ipart, fpart;
value
-3.1415;
fpart
=
modf(va1ue, &ipart);
/* After execution, ipart contains -3.0, */
/* and fpart contains -0.1415.
*/
6-57

Advertisement

Table of Contents
loading

Table of Contents