I am printing data with the type float to a file. My problem is the data needs to line up in nice neat columns and it isn't. Plus some of it is printing out in integer form (ex: 9.00 is printing out as 9).
Please see the attached text file to see what the output looks like.
Here is my fprintf statement for printing out the data. This is inside a loop to loop through the array of values.
What can I do to make the data line up (left justified) in neat columns?Code:fprintf(f," %g %g \n", value[i].num1, value[i].num2]);