K
Kate Luu
Hi all,
does any body know what going on?
float f1 = 0.1f;
float f2 = 0.2f;
f2 - f1 = 0.100000098
if I check the number like this:
if( f2 = = 0.1f )
...............
NEVER WORKED !!!
does any body know what going on?
float f1 = 0.1f;
float f2 = 0.2f;
f2 - f1 = 0.100000098
if I check the number like this:
if( f2 = = 0.1f )
...............
NEVER WORKED !!!