 |
compare_Floats |
Function (ROM Call 0x2F7) |
Compares two floating point entries on the expression stack.
compare_Floats compares two floating point entries on the expression stack pointed to by
ptr1 and ptr2, and returns a value which is
- < 0 if the number pointed to by ptr1 is less than the number pointed to by ptr2
- == 0 if the number pointed to by ptr1 is the same as the number pointed to by ptr2
- > 0 if the number pointed to by ptr1 is greater than the number pointed to by ptr2
So, this function is similar like fcmp, except the arguments are
different (fcmp uses floating point arguments, and compare_Floats
uses pointers to floating point entries on the expression stack).
Uses: estack_to_float, _bcd_math
Used by: push_asin, push_dot_exponentiate, GetStatValue