I am recording data every 0.02 seconds and my code to save this information to a tab deliminated file is producing some peculiar results where even though i am adding 0.02 on each time to the time variable it starts being slightly off (i'm aware that when rounded it is essentially the same but it bugs me). How do i get it to look like the corrected data set
output.println(time + "\t" + accelX + "\t" + accelY + "\t" + accelZ);
time = time + 0.02;
the output gives me (I left out the other data as it is going in fine)
Time 0.02 0.04 0.06 0.08 0.099999994 0.1199999999
should be
Time 0.02 0.04 0.06 0.08 0.1 0.12