| gcd_exact_whole_Floats | Function (ROM Call 0x2FC*)

AMS 1.01 or higher | estack.h

float gcd_exact_whole_Floats (CESI ptr1, CESI ptr2);

Finds the greatest common divisor of two floating point entries.

gcd_exact_whole_Floats finds the greatest common divisor of two floating point entries pointed to by ptr1 and ptr2 and returns the result (the result is a garbage if ptr1 or ptr2 doesn't point to floating point entries).
Note: Although the name of the function suggests that both entries need to be whole numbers, this is not true. This function, in fact, returns "generalized" GCD of two numbers x and y which is defined as the greatest number z which has a property that both x/z and y/z are whole numbers.

Uses: fabs, fmod, estack_to_float, _bcd_math
Used by: push_gcd_numbers