Download MetaTrader 5
To add comments, please log in or register
Sign up for MQL5.community to post your Forum topic
47803124
154
47803124 2014.05.01 17:33 

double a=1.7;
double b=1.6;
double c=a-b;
Alert(c);

the result is 0.99999999999999999987?

Alain Verleyen
Moderator
29679
Alain Verleyen 2014.05.01 22:45  
onewithzachy
2271
onewithzachy 2014.05.02 00:10  
zdj231:

double a=1.7;
double b=1.6;
double c=a-b;
Alert(c);

the result is 0.99999999999999999987?


Is your result 0.99999999999999999987 or 0.099999999999999999987 ? Big different there.


Alain Verleyen
Moderator
29679
Alain Verleyen 2014.05.02 08:52  
onewithzachy:

Is your result 0.99999999999999999987 or 0.099999999999999999987 ? Big different there.


I supposed it was a typo.
whroeder1
13993
/
To add comments, please log in or register