Printing double precision numbers
Hello All,
This should be really easy and I'm amazed that I have to send out this query.
I'm reading double precision numbers from a file, processing them and writing the results out in double precision. The precision is important because one column of this data is a time stamp.
The following code fragment reads in the time stamp and amplitude and prints it correctly on the console:
For clarity the input and output files have already been opened.
while (meof(inpf) == 0)
inline = mgetl(inpf,1);
if (meof(inpf) == 0)
[numargs, time, ampl] = msscanf(inline,'%lg,%lg');