Could someone tell me why the following code is outputting 0 at the marked line?
0
It seems as if everything is correct but then when I try to get the re
In short: Integer division truncates
You need the following:
double timeLapseInterval = (double) totalLengthSecs / (double)totalFrames; printf("\ntimeLapseInterval : %f \n", timeLapseInterval);