Hallo erstmal, das ist bestimmt für einige eine ganz schön dumme frage aber ich hab schon ein paar Bücher durchblättert und versteh leider immernoch nicht warum dieses Programm den wert false zurück gibt.
double f = 0.2;
f = f + 0.4;
if ( f == 0.6){ // ?
cout<<"true";
}else{
cout<<"false";
}
Vielen dank schonmal
double f = 0.2;
f = f + 0.4;
if ( f == 0.6){ // ?
cout<<"true";
}else{
cout<<"false";
}
Vielen dank schonmal