EasyManua.ls Logo

Texas Instruments TMS34010 - Page 109

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-FTOI
Input(s)
Output(s)
Action
Description
Errors
Example
0-18
Single(Float)tolnteger
FP FTOI
float
int
float
--+
int
This function converts a single-precision
floating-point
number
to
signed
32-bit
integer format.
Conversion Error (error code
# =
3)
The conversion error
is
generated
only
when
the value V
of
the double-
precision number (after truncation)
is
too
large
to
be
faithfully
represented
in the signed
32-bit
integer format.
This
example
of
C code generates a call
to
-
FP
- FTO!.
maine
)
(
}
float
a;
integer
i
i = a i
/*
declare
one
single
*/
/*
precision
floating
point
number
and
one
integer
*/
/*
end
of
main
*/

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals