T
Tony Holdgate
I've googled extensively for this one but have not come up with an answer,
despite finding many references.
The following formula in excel
=INT((20.7-19.1)/0.4) gives the answer 3. The correct answer mathematically
is 4.
If you remove the integer function and extend the decimal places it
eventually changes to
3.99999999999999 which explains why the integer function rounds it down.
However the school I went to says that 20.7- 19.1 = 1.6 1.6 /.4 = 4. Thats
4.0000000000000000 not 3.999999999999
Can anyone explain firstly what is happening and then the best approach to
fix it?
Thanks
Tony
despite finding many references.
The following formula in excel
=INT((20.7-19.1)/0.4) gives the answer 3. The correct answer mathematically
is 4.
If you remove the integer function and extend the decimal places it
eventually changes to
3.99999999999999 which explains why the integer function rounds it down.
However the school I went to says that 20.7- 19.1 = 1.6 1.6 /.4 = 4. Thats
4.0000000000000000 not 3.999999999999
Can anyone explain firstly what is happening and then the best approach to
fix it?
Thanks
Tony