Changed input dt to a multiple of 1/8192, turns into a float in beginning of main.