Xvg file format including non-continuous numbers

GROMACS version:
GROMACS modification: Yes/No
Here post your question

Hi there, I was just wondering why in the xvg file (such as rmsd.xvg) the numbers in the first column of the tabular data as shown in the figure below are not always continuous? If I understand it correctly the first column indicates the simulation time/step while the second one is rmsd/rmsf etc.


As shown in the highlight, it’s 0.5100001 instead of 0.5100000 and I wonder if there is any specific reason for that. Many thanks.


the reason is due to imprecision in floating point numbers. In this case the number of decimals written in the .xvg file is larger than the number can accurately represent with 32 bits, so the error becomes apparent (if very minor).


1 Like

Hi Petter,

Thank you very much for your explanation. It makes sense to me now.