i would like to know if this is just with delphi or with all languages .This code is not allowed with floating points
in c++ why this code work
but in pascal will always print "Not equal"float a = 0.01f;
float b = 0.01f;
if ( (a + b) == 0.02f)
printf("Equal \n");
else
printf("Not equal \n");
Bookmarks