Hi All,
I have a strange issue occuring when I try to test when a number equals another number. At first I thought it was due to the function i was using [INT() or ROUND()] but have disproved this by doing this manually. Please could someone help me understand if this is a general issue or whether it's something to do with my PC? I'm using excel 2007.
In Excel I have 2 numbers, 2013.13 and 2013 in separate cells. In another cell I simply subtract them. This should bring an answer of 0.13 but if you extend the number of decimal place to 13 you start to see some extra digits, namely 0.130000000000109000. The problem with this then means you can't test if the subtraction is the same as a fixed test number.
Here's the table
<tbody>
</tbody>
Hope someone can help
Thanks in advance
RodP
I have a strange issue occuring when I try to test when a number equals another number. At first I thought it was due to the function i was using [INT() or ROUND()] but have disproved this by doing this manually. Please could someone help me understand if this is a general issue or whether it's something to do with my PC? I'm using excel 2007.
In Excel I have 2 numbers, 2013.13 and 2013 in separate cells. In another cell I simply subtract them. This should bring an answer of 0.13 but if you extend the number of decimal place to 13 you start to see some extra digits, namely 0.130000000000109000. The problem with this then means you can't test if the subtraction is the same as a fixed test number.
Here's the table
A | B | C | D | ||
1 | 2013.13 | ||||
2 | 2013 | ||||
3 | 0.13 | ||||
4 | =A1-A2 | This will show a result of 0.13 but in fact it's
<tbody> </tbody> | |||
If(A3=A4,TRUE, FALSE) | This should return TRUE but because of the extra digits occuring then it returns FALSE... hence my problem! |
<tbody>
</tbody>
Hope someone can help
Thanks in advance
RodP