EasyManua.ls Logo

Texas Instruments TMS34010 - Page 104

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-DTOF
Doubleto
Single
(
Float)
-FP-DTOF
Input(s)
double
Output(s)
float
Action
double
-+
float
Description
This function converts a double-precision
floating-point
number
to
sin-
gle-precision
floating-point
format.
Errors
Conversion Error (error code # =
2)
Example
The conversion error is generated only
when
the value V
of
the
double
precision number (after rounding) is
too
big
to
be faithfully represented in
the single precision format.
The
following
is
an
example
of
C code
which
would
generate a call
to
-FP-DTOF.
main(
)
{
}
double
a
float
b
b = a ;
/*
declare
one
double
and
one
*/
/*
single-precision
binary
floating-point
number
*/
/*
end
of
main
*/
0-13

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals