Hi

when I input a float(double) number with scanf() or predefined like

scanf("%f",&num);//input is 1.12
float num = 1.12;

in fact, num is not 1.12, it is something like 1.1200000000000000xxx or something,

but how could I really restrict num to 1.12??

I know there is something like FLT_EPSILON, but no idea how to use it, any idea??

Thanks