Is there any reason you have... x = sscanf(out, "%lf", &fnum); ...instead of... x = sscanf(out, "%f", &fnum); ...? The "%lf" indicates a double. But fnum is a float. Mismatch error. --Eljay