This is part of the code, just imagine it reading records from the file and printing it down the page all right justified so the pennies are in the same columns, cheers.
fprintf(pp, " %s %d %4d %4d %d %3.1f %4.2f %3.1f %4.2f\n", reference_no, type_code,
weight, quantity, calc_method, buy_price, buy_value, sale_price, sale_value);