0

There is lots of explanations and resources in internet. some of them is mumbo-jumbo, some of them is somewhat clear saying that it's because of FPU works differently and e.t.c. but no clear and short answer is shown though.. can anybody explain in a popular language terms Why and How Division operation is not giving accurate and precise result when it comes to Float numbers?

Giorgi Tsiklauri
  • 9,715
  • 8
  • 45
  • 66

1 Answers1

2

Division is one of IEEE 754 basic operations for which the result is, in the default rounding mode, the nearest representable floating-point number to the real result. Here is one deck of slides, of which “IEEE-754: specification of the arithmetic operations” lists division as one of the operations having this property.

What other result would you expect for floating-point division that would be more accurate?

Pascal Cuoq
  • 79,187
  • 7
  • 161
  • 281