Appendix A: System Routines — Direct Floating Point Operations
403
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
estack_to_float
Declaration:
Float
estack_to_float
(IndexConstQuantum
i
)
Category(ies):
Direct Floating Point Operations, EStack Utilities
Description:
Returns the Float value indexed by
i
.
Inputs:
i
— Index to a tagged float.
Outputs:
Returns the Float value.
Assumptions:
i
points to the tag of a tagged float.
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: estack_number_to_Float, estack_to_short, estack_to_ushort
Example:
Boolean is_Float_exact_whole_number (IndexConstQuantum i)
/* i indexes a Float.
Returns TRUE if it is a whole number whose magnitude is less than
the smallest whole number that is not represented exactly.
*/
{ Float f;
f = estack_to_float (i);
return fabs (f) <= MAX_EXACT_FLOAT_WHOLE_NUMBER &&
FLOAT0 == FMOD (f, FLOAT1);
}