Download MetaTrader 5
To add comments, please log in or register
How to earn at MQL5.community? Come and find out!
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
28672
Alain Verleyen 2014.05.01 22:45  
onewithzachy
2274
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
28672
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
13644
/
To add comments, please log in or register