Appendix A: System Routines — Utilities
1099
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
abs
Declaration:
int
abs
(int
val
)
Category(ies):
Utilities
Description:
Returns the absolute value of an integer.
Inputs:
val
— Input value.
Outputs:
Absolute value of input.
Assumptions:
None
Side Effects:
None
Availability:
In the jump table on AMS 2.04 and higher.
Always available in the AMS library.
TI-89 / TI-92 Plus
Differences:
None
See Also: labs
Example:
See
WinScrollH
for an example of calling
abs
.
The following code fragment will run on any version of AMS since it forces
the
abs
routine from the AMS library to be linked in.
include "tiams.h"
#undef abs
int abs( int );
.
.
.
int val;
.
.
.
return( abs( val ) );