sandyrepope
22-12-2007, 02:07
I've been playing around with the two calculator examples and I think I have found a bug in the code. Do this:
1 press the 6 button
2 press the 1/x button
answer: .166666666666667
3 press the 1/x button
answer: 5.99999999999999
I'm not too good at math but this seems to give the wrong answer. Could someone let me know why it gives the above result?
I've tried this in the Microsoft calculator and it gives a different answer. Pressing the 1/x button the second time gives an answer of 6.
Thanks
Sandy
1 press the 6 button
2 press the 1/x button
answer: .166666666666667
3 press the 1/x button
answer: 5.99999999999999
I'm not too good at math but this seems to give the wrong answer. Could someone let me know why it gives the above result?
I've tried this in the Microsoft calculator and it gives a different answer. Pressing the 1/x button the second time gives an answer of 6.
Thanks
Sandy