-1

When I subtract 4.7 from 2.3, I get a number with 16 decimal places, instead of getting a specific number with one decimal place. How come it doesn't give you a specific answer?

juanpa.arrivillaga
  • 77,035
  • 9
  • 115
  • 152

1 Answers1

2

This is because of the numerical representation of both decimal numbers (4.7 and 2.3) in binary:

4.7 is represented in binary as 100.10110011001100110011...

2.3 is represented in binary as 10.01001100110011001101...

As you can see, both are periodic tithes in binary. This is why you do not obtain a precise result.

I hope it helps.

Community
  • 1
  • 1
Dalton Cézane
  • 3,386
  • 2
  • 30
  • 57