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...
Absolute
Value
abs/labs
Syntax
#include
<stdlib.h>
int
abs(j}
int
ji
long
int
labs(k)
long
int
ki
Defined
in
abs.
c in
rts.
src
Description
The C compiler supports
two
functions that return the absolute value
of
an
integer:
The abs function returns the absolute value
of
an
integer,
j.
The labs function returns the absolute value
of
a long integer,
k.
Since int and long int
are
functionally equivalent types in TMS3401 0
C,
the
abs and
labs functions
are
also functionally equivalent.
6-17

Table of Contents

Other manuals for Texas Instruments TMS34010

Related product manuals