Download MetaTrader 5

cal problom double type cal

To add comments, please log in or register
47803124
157
47803124  

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

the result is 0.99999999999999999987?

Alain Verleyen
Moderator
31184
Alain Verleyen  
onewithzachy
2271
onewithzachy  
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
31184
Alain Verleyen  
onewithzachy:

Is your result 0.99999999999999999987 or 0.099999999999999999987 ? Big different there.


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