Hi,
I know this is a very simple question. I just found this issue when want to display a double output using printf:
with processing_time = 8096,
printf("\nEncoding time: %f seconds.\n", (double)processing_time/1000);
Display:
Encoding time: seconds
However, when I use integer
printf("\nEncoding time: %d seconds.\n", (int)processing_time/1000);
Display:
Encoding time: 8 seconds
I spent almost half hour on this. This is surely not a problem on my VStudio.
Kind regards
Rizuan