I want to ask, because this cycle throws me false ?, not know why that is the result. I think it has to do with floating point
Thank you for your help.
double a = 2d;
System.out.println(a);
double b = 2.6d ;
System.out.println(b);
for (int i = 0; i < 6 ; i ++)
{
a+= 0.1;
}
System.out.println ( a==b ) ;
RUN
2.0
2.6
false