This code is not allowed with floating points
i would like to know if this is just with delphi or with all languages .

in c++ why this code work
float a = 0.01f;
float b = 0.01f;

if ( (a + b) == 0.02f)
printf("Equal \n");
else
printf("Not equal \n");
but in pascal will always print "Not equal"