Core Links Engineering CalculatorsHPに戻るCompany homeAll tools

Beta

Integer & Fraction Calculator

Find GCD, LCM and prime factors, or add, subtract, multiply, divide and reduce fractions and convert decimals.

Free, no sign-in. Input values are calculated on your device.

Choose another math calculator (9 tools)

Enter the conditions

Result

Loading the calculator.

How to use this calculator

  1. Choose the task you need.
  2. Check the labels and units, then enter the known values.
  3. Select Calculate to see the result and formula. Recalculate after changing inputs.
  • Greatest common divisor and least common multiple:Enter two integers. Signs are ignored for the GCD/LCM; if one input is zero, the LCM is zero.
  • Prime factorization and primality:Enter an integer from 2 to 1,000,000,000,000. Find its prime factorization and number of positive divisors.
  • Add, subtract, multiply or divide fractions:Enter 1/3, 0.25 or a mixed number such as 1 1/2. Decimal digits are treated as exact fractions.
  • Reduce a fraction or convert a decimal:For example, 6/8 reduces to 3/4 and 0.125 becomes 1/8. Repeating decimals are not inferred.

Worked examples

The GCD of 24 and 36 is 12 and their LCM is 72. 1/3 + 1/6 = 1/2.

Assumptions and limits

  • GCD/LCM inputs must be integers with magnitude at most 10^15. The pair 0 and 0 is excluded.
  • Prime factorization supports 2 through 10^12. Fraction/decimal inputs support up to 15 integer digits and 12 decimal places.
  • Reduced fractions are exact; the accompanying decimal is approximate. Irrational constants such as pi and e are excluded from fraction modes.

Related calculations

Math calculator directory