Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Greatest common divisor of fractions and decimals

  1. Jul 20, 2009 #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.
  2. jcsd
  3. Jul 21, 2009 #2


    User Avatar
    Science Advisor

    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".
  4. Jul 21, 2009 #3
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook