EasyManua.ls Logo

Texas Instruments TMS34010 - Page 105

Texas Instruments TMS34010
128 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...
-FP~DTOI
DoubletoSigned
Integer
-FP-DTOI
Input(s)
double
Output(s)
int
Action
double
....
int
Description
This function converts a double-precision
floating-point
number
to
a
signed
32-bit
integer format.
Errors Conversion Error (error code # =
1)
Example
0-14
The conversion error
is
generated
only
when the value V
of
the double
precision number (after truncation)
is
too
big
to
be faithfully represented in
the signed
32-bit
binary integer format.
The
following
is
an
example
of
C code
which
would
generate a call
to
-FP-DTOI.
main(
)
{
}
double
a
integer
i
i = a
/*
declare
one
double-
*/
/*
~recision
floating-
po~nt
number
and
one
integer
*/
/*
end
of
m.ain
*/

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals