Potemkin62 / Publications
Forum
MQL5: Wrong results in simple operations with the double type. It's quite serious
double a = 0.3; double b = 0.1; Print(a/b); ----------------------------- 2.9999999999999996 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX double a = 0.0003; Print (a * 10000); ----------------------------- 2.9999999999999996