ReadFile significant figures

I am reading time-stamps from a .dat file and saving it on a Ttree branch but it is always rounding the number.
A typical time on the file is 3611169011.349 and it is saved as 3611169011.
I have used “double” but it is not showing the entire number.
I also tried reading it as a string and convert it to double I and get the same result.
Is there any way to avoid this rounding or set the desired significant figures.
Many thanks,
ReadData.C (966 Bytes)

Hi Lilina,
I think double precision floating points are correctly saved in TTrees. Can you pick one single number, the one you mention above and can you triplecheck that:


Dear D,
Many thanks for your reply. I have checked that the double precision floating points are correctly saved.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.