| did_push_cnvrt_Float_to_integer | Function (ROM Call 0x2F8)

AMS 1.01 or higher | estack.h

short did_push_cnvrt_Float_to_integer (CESI ptr);

Pushes a floating point entry converted to an integer, but only if it is an exact whole number.

did_push_cnvrt_Float_to_integer is a subroutine used in push_cnvrt_integer_if_whole_nmb. It assumes that ptr points to a floating point entry. If it is a whole number (including big numbers too), did_push_cnvrt_Float_to_integer pushes the number converted to a tagged integer to the expression stack, and returns TRUE, otherwise it does nothing and returns FALSE.

Uses: delete_between, push_expression, push_Float, push_Float_to_nonneg_int, top_estack, fabs, fmod, estack_to_float, _bcd_math
Used by: push_cnvrt_integer_if_whole_nmb, push_extended_prod, push_sin2, push_summation