push_round_Float Function (ROM Call 0x310)

AMS 1.01 or higher estack.h

void push_round_Float (CESI ptr);

Pushes an approximation of a floating point entry.

push_round_Float first finds a rational approximation of the floating point entry pointed to by ptr using push_Float_to_rat, then converts this fraction back to the floating point number and pushes it on the top of the expressions stack. The summary effect is rounding float to the precision of about 1e-5.


Uses: delete_between, estack_number_to_Float, push_Float, push_Float_to_rat, top_estack, RAtionalize_tol
Used by: ROM Call 0x48C