Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Strange problem with decimal numbers

$
0
0

Hi all, I have an empty excel workbook.

I've created a simple macro, which doesn't do anything, just to put a breakpoint in my code.

When the breakpoint is reached, I add a watch and write this simple formula: 700 - 691.1

Surprisingly, the result isn't 8,4 BUT 8,89999999999998
This strange behaviuor is giving me a lot of problems... 

700-691.1 is wrong; 800-691.1 is right!!!!

Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>