push_Float_to_nonneg_int Function (ROM Call 0x30B)

AMS 1.01 or higher estack.h

void push_Float_to_nonneg_int (float value);

Rounds a floating point value to an integer, then pushes it to the expression stack.

push_Float_to_nonneg_int rounds value to the nearest integer, then pushes it to the expression stack, as a tagged integer value. The sign of value is ignored. This routine may throw an error if the truncated integer part of value is not representable as a big integer.


Uses: check_estack_size, delete_between, push_between, push_quantum, top_estack, _bcd_math
Used by: did_push_cnvrt_Float_to_integer, push_gcd_numbers, push_sequence