EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 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 #581 background imageLoading...
Page #581 background image
Appendix A: System Routines — Expression Evaluation /
Algebraic Simplification
539
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
ForceFloat
Declaration:
BCD16
ForceFloat
(EStackIndex
i
)
Category(ies):
Expression Evaluation, Floating Point Operations
Description:
If the estack expression pointed to by
i
is a floating-point value, it is
returned. Otherwise
NG_approxESI
is used to try to force it to a
floating-point value. Either way, the result returned is rounded to 14 places
before it is returned.
Inputs:
i
estack pointer of expression to convert to float.
Outputs:
BCD16 (double) value of estack expression.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: NG_approxESI
Example:
Access_AMS_Global_Variables;
EStackIndex origEStack;
char Buf[128];
BCD16 floatVal;
WinClr( &appW );
strcpy( (char *) Buf, "100/201" );
origEStack = top_estack;
TRY
push_quantum( END_OF_SEGMENT_TAG );
push_parse_text( (BYTE *) Buf );
floatVal = ForceFloat( top_estack );
sprintf( Buf, "%f", floatVal );
WinStr( &appW, Buf );
GKeyIn( NULL, 0 );
ONERR
top_estack = origEStack;
PASS;
ENDTRY
top_estack = origEStack;

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals