Texas Instruments TI-89 Developer's Manual page 1141

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Utilities
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 ) );
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
1099
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents