EasyManua.ls Logo

Texas Instruments TMS34010

Texas Instruments TMS34010
181 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...
Fraction
and
Exponent
Syntax
#include
<math.h>
double
frexp(value,
exp)
double
value;
/*
input
floating-point
number
*/
int
*exp;
/*
pointer
to
exponent
*/
Defined
in
frexp.obj
in
rts.lib
frexp
Description
The frexp function breaks a floating-point number into a normalized fraction
and
an
integer power
of
2.
The function returns a value
with
a magnitude
in the range
[~,1}
or 0,
so
that
value
= x x
2(**exp).
The frexp function
stores the power in the
int
pointed to by expo
If
value
is
0, both parts
of
the result
are
0.
Example
double
fraction;
int
exp;
fraction
=
frexp(3.0,
&exp);
/*
after
execution,
fraction
is
.75
and
exp
is
2
*/
6-41

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals