466
Appendix A: System Routines — EStack Arithmetic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
compare_Floats
Declaration:
int
compare_Floats
(IndexConstQuantum
i
, IndexConstQuantum
j
)
Category(ies):
EStack Arithmetic
Description:
Compares tthe tagged floats indexed by
i
and
j
.
Inputs:
i, j
— Indexes to tagged floats.
Outputs:
Returns 0 if the tagged floats indexed by
i
and
j
are equal, 1 if the tagged
float indexed by
i
is larger, or
L
1 if the tagged float indexed by
j
is larger.
Assumptions:
i
and
j
point to the tags of tagged floats.
Side Effects:
None
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: compare_numbers, compare_complex_magnitudes,
compare_expressions
Examples:
push_Float (3.7);
j = top_estack;
push_Float (5.2);
i = top_estack;
compare_Floats (i, j); /* Returns 1 */