Greatest Common Divisor (GCD) of Numbers (A, B)
and / or
Reduction of Fraction   (A / B)  to  (a / b)

The (A/B) arguments may be integers or decimal values.  Decimal ratios are converted into integer ratios.
Original
A / B
GCD 1
Recuced
a / b
1 / 1
  = 1
 


Suggested random (A / B) test fraction to experiment with above:
66398888 / 2523850




© Jay Tanner - PHP Science Labs - 2017 - v4.5