Set Maximum Number of characters (Precision) for positive and Negative Values
Hi,
I want to be able to jump to a particular line in a CSV file. I have read that in order to do so, each line must have the same size.
Therefore, in writing the data to the file I want to set the number of characters to a specified/set number.
I have tried:
Code:
file.setf(ios_base::fixed, ios_base::floatfield);
file.precision(10);
However, my issue is with negative values. Will negative values take up space?
many thanks