**Finding the LCM and HCF** are most frequently asked questions in any competitive exams. Finding LCM and HCF for natural numbers are taught in our school level but in some exams they also ask to find the LCM and HCF of decimal numbers.

There is easy process to find the LCM and HCF of decimal numbers similar to natural numbers with some changes.

**Example-1:**

Find the HCF and LCM of 3, 2.7, 0.09

**Explanation:**

**Step-1:**

Write all the numbers with same number of digits after decimal point.

3.00, 2.70, 0.09

**Step-2:**

Now count the number of digits after decimal point (value is 2 for above problem) and calculate 10 power of the obtained value. Let the number be n = 10^{2}= 100.**Step-3:**

Now remove the decimal point and find the LCM and HCF of the numbers.LCM(300, 270, 9) and HCF(300, 270, 9). 300 = 2

^{2 }x 3^{1}x 5^{2}270 = 2^{1}x 3^{3}x 5^{1}9 = 2^{0}x 3^{2}x 5^{0}LCM(300, 270, 9) = 2^{2}x 3^{3}x 5^{2}= 2700 HCF(300, 270, 9) = 2^{0}x 3^{1}x 5^{0}= 3For finding the LCM and HCF, we should write the number in the power of prime numbers as written above. We should ensure that all the numbers should be written as power of prime numbers of same number. Example : 9 can be written as 3

^{2}but the other two numbers also contain 2 and 5 as primes. So we can write other two numbers as powers of 0. So 9 can be written as 2^{0}x 3^{2}x 5^{0}and it won’t change the value of the number.Since we have our numbers in form of power of primes, Now the LCM is the number formed as the product of primes with its power is maximum value of the power of the same prime in given numbers.

LCM = 2 power of max(2, 1, 0) x 3 power of max(1, 3, 2) x 5 power of max(2, 1, 0) = 2

^{2}x 3^{3}x 5^{2}= 2700HCF calculation is similar but with only one change. Instead of taking max in power we take min in power.

HCF = 2 power of min(2, 1, 0) x 3 power of min(1, 3, 2) x 5 power of min(2, 1, 0) = 2

^{0}x 3^{1}x 5^{0}= 3**Step-4:**

Now divide the obtained answer with our number n in step 2. The value we obtain is our required answer.

LCM(3, 2.7, 9) = 2700/100 = 27 HCF(3, 2.7, 9) = 3/100 = 0.03

**Example-2:**

Find LCM and HCF of 0.216, 6, 2.

**Explanation:**

By using the above steps, in similar way we can do this problem.

**Step-1:**0.216, 6, 2 -> 0.216, 6.000, 2.000

**Step-2:**

Since the number of digits after decimal point is 3, the value of n = 10^{3}= 1000.**Step-3:**

Find LCM (216, 6000, 2000) and HCF (216, 600, 200).216 = 2

^{3}x 3^{3}= 2^{3}x 3^{3}x 5^{0}6000 = 2^{4}x 3^{1}x 5^{3}= 2^{4}x 3^{1}x 5^{3}2000 = 2^{4}x 5^{3 }= 2^{4}x 3^{0}x 5^{3}LCM(216, 600, 200) = 2^{4}x 3^{3}x 5^{3 }= 54000 HCF(216, 600, 200) = 2^{3}x 3^{0}x 5^{0}= 8**Step-4:**LCM(0.216, 6, 2) = 5400/1000 = 54 HCF(0.216, 6, 2) = 8/1000 = 0.008

**Example-3:**

Find the LCM and HCF of 0.63, 1.05.

**Explanation :**

**Step-1:**0.63, 1.05 -> 0.63, 1.05

**Step-2:**

Since the number of digits after decimal point is 2, the value of n = 10^{2}= 100.**Step-3:**

Remove decimal point and find LCM (63, 105) and HCF(63, 105).63 = 3

^{2}x 5^{0}x 7^{1}105 = 3^{1}x 5^{1}x 7^{1}LCM (63, 105) = 3^{2}x 5^{1}x 7^{1}= 315 HCF(63, 105) = 3^{1}x 5^{0}x 7^{1}= 21**Step-4:**LCM (0.63, 1.05) = 315/100 = 3.15 HCF(0.63, 1.05) = 21/100 = 2.1

In this simple way we can find the LCM and HCF of any number of decimals of any number.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

## Recommended Posts:

- Finding nth term of any Polynomial Sequence
- Finding reminder of a large number
- Mathematics | Sum of squares of even and odd natural numbers
- Count of numbers whose 0th and Nth bits are set
- Count of N digit numbers possible which satisfy the given conditions
- Check if a number is Prime, Semi-Prime or Composite for very large numbers
- Linear Congruence method for generating Pseudo Random Numbers
- Multiplicative Congruence method for generating Pseudo Random Numbers
- Additive Congruence method for generating Pseudo Random Numbers
- Find speed of man from speed of stream and ratio of time with up and down streams
- Univariate, Bivariate and Multivariate data and its analysis
- Mathematics | Predicates and Quantifiers | Set 1
- Mathematics | Mean, Variance and Standard Deviation
- Mathematics | Eigen Values and Eigen Vectors
- Mathematics | Introduction and types of Relations
- Mathematics | Representations of Matrices and Graphs in Relations
- Aptitude | Simplification and Approximation | Question 1
- Aptitude | Simplification and Approximation | Question 2
- Aptitude | Simplification and Approximation | Question 3
- Aptitude | Simplification and Approximation | Question 4

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.