EasyManua.ls Logo

Texas Instruments TMS34010

Texas Instruments TMS34010
181 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals