Floattab - Texas Instruments TI-89 Developer's Manual

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

Advertisement

Appendix B: Global Variables —
Direct Floating Point Operations

FLOATTAB

Declaration:
BCD16 FLOATTAB [ ]
Category(ies):
Direct Floating Point Operations
Description:
This is an array of commonly used floating-point numbers that an app can
access.
Inputs:
FPI_TWOPI, FPI_ONEPI, FPI_PIDIV2, FPI_PIDIV4, FPI_360, FPI_180,
FPI_90, FPI_45, FPI_180DIVPI, FPI_PIDIV180, FPI_0, FPI_PT001,
FPI_PT1, FPI_PIDIV24, FPI_PT5, FPI_PT9, FPI_1, FPI_NEG1,
FPI_SQRRT2, FPI_2, FPI_3, FPI_2PI12, FPI_10, FPI_NEG10, FPI_12,
FPI_14, FPI_20, FPI_70, FPI_BIGGEST, FPI_NEGBIGGEST, FPI_16000,
FPI_NEG16000, FPI_32767, FPI_NEG32768, FPI_65535, FPI_1E14,
FPI_INVALID, FPI_LOGE, FPI_POS0, FPI_NEG0, FPI_POSINF,
FPI_NEGINF, FPI_UNSINF
Outputs:
2* , , /2, /4, 360.0, 180.0, 90.0, 45.0, 180/ , /180, 0.0, 0.001, 0.1, /24,
0.5, 0.9, 1.0, -1.0, sqrt(2), 2.0, 3.0, 2* (12 digits), 10.0, -10.0, 12.0, 14.0,
20.0, 70.0, 10^1000, -(10^1000), 16000.0, -16000.0, 32767.0, -32768.0,
65535.0 (max f.p. integer), 1.0e14, "Invalid Float", log(e), Positive Zero,
Negative Zero, +infinity, -infinity, infinity
Assumptions:
Access_AMS_Global_Variables must be defined.
Side Effects:
None
Availability:
On AMS 2.00 and above.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
FLOATTAB values can be used just like normal floating-point values as
shown in the following code fragment. They have the advantage of being
able to represent some values the compiler does not know about such as
the Invalid Float and the infinities.
Access_AMS_Global_Variables;
BCD16 pVal, tVal;
.
.
.
if ( pval == 0.0 )
tVal = FLOATTAB[FPI_POSINF];
else if ( pval == 1.0 )
tval = FLOATTAB[FPI_NEGINF];
.
.
.
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
1219
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