0

I am doing a simple operation of a multiplication and a division in the following manner in Java.

100 * 44907280.59 / 44907280.59;

I was expecting it to give me 100, but it was giving me 99.999999....

I tried searching Google for the related help, but I could not get any. And if I remove the multiplication part and just divide like below

44907280.59 / 44907280.59;

the result I see is 1.0

Can someone please explain me what is going on here?

Ravi
  • 879
  • 2
  • 9
  • 23

0 Answers0