Greatest common divisor of fractions and decimals

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 13K views
topito2
Messages
37
Reaction score
1
Is it possible to calculate the greatest common divisor of decimals and fractions? As far as I know, the greatest common divisor is a number you can calculate for integers, but I wonder if it's possible to calculate it for decimals and fractions.
 
Mathematics news on Phys.org
No. "Least common multiple" and "greatest common divisor" are only defined for integers. If you allow fractions or irrational numbers, then any number, other than 0, can be a "common multiple" or "common divisor" so there are no "least" or "greatest".
 
You will have to define divisor and multiple for this to work. One possibility: for positive rational numbers x,y, say x divides y if y/x is an integer. With this definition, gcd and lcm can be defined.