-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