I am reading some numbers from a file in C.
For example,
0.00632, 0.02731...
I store these numbers in double type variables.
This is how I read them:
fscanf(fp_ptr, "%lg", &num);
However when I check the value of the num via the watch window of the program I use (Visual Studio Express), I see the values as 0.0063200000000000001, 0.027310000000000001...
Is this normal? How can I read the exact value in the file?