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.


0.5100001

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.

Hi,

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).

Petter

1 Like

Hi Petter,

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