EasyManuals Logo

Texas Instruments TMS34010 Reference Guide

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
Page #116 background imageLoading...
Page #116 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS34010 and is the answer not in the manual?

Texas Instruments TMS34010 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS34010
CategoryComputer Hardware
LanguageEnglish

Related product manuals