EasyManua.ls Logo

Texas Instruments TMS34010 - Page 110

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-FTOU
SingleCFloat)toUnsignedlnteger
-FP-FTOU
Input(s)
float
Output(s)
unsigned
int
Action
float'"
unsigned
int
Description
This
function
converts a single-precision
floating-point
number to unsigned
32-bit
integer format.
Errors Conversion Error (error code # =
3)
Example
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
- FTOU.
main(
)
(
float
a;
unsigned
j ;
j
= a
}
/*
declare
one
single
*/
/*
precision
floating
point
number
and
one
integer
*/
/*
end
of
main
*/
D-19

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals