I program in VB6 more than 15 years and today I got a very mysterious bug that made me investigate my variables and I was shocked also when I did this in the immediate window too.
VB6 Immediate Window:
?18.21-18.29
-7,99999999999983E-02
?18.25-18.20
5,00000000000007E-02
In the immediate window of vb.net i do not have this problem:
?18.21-18.29
-0.0799999999999983
?18.25-18.20
0.050000000000000711
So if if numbers like these are assigned to variables in VB6 (tried Single, Double, even Variant - had the same outcome) I get disasterous results.
Am I going crazy over here?? Am I missing something?