Use "%lf" as the format control string for fscanf as in:

[...]

double d;
fscanf(yourstream, "%lf", &d);

[...]