402
Appendix A: System Routines — Direct Floating Point Operations
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
estack_number_to_Float
Declaration:
Float
estack_number_to_Float
(IndexConstQuantum
i
)
Category(ies):
Direct Floating Point Operations, EStack Utilities
Description:
Returns the floating-point representation of
i
.
Inputs:
i
— Index of a tagged number.
Outputs:
Floating-point representation of
i
.
Assumptions:
i
points to the tag of a tagged number.
Side Effects:
None
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: estack_to_float
Example:
Boolean sum_has_small_numeric_term (EStackIndex i, Float tolerance)
/* i indexes a sum.
Returns TRUE if it does not have a top-level numeric term or if its
magnitude is < tolerance.
*/
{ i = index_numeric_term (i);
return NULL_INDEX == i ||
fabs (estack_number_to_Float (i)) <= tolerance;
}