Having such simple C++ instructions:
int f1 = 3238;
printf_s("Printf_1.cpp 1 - float: %d\n", f1);
printf_s("Printf_1.cpp 2 - float: %f\n", f1);
The output of the second printf_s
is 0.000000
My question is why there isn't just 3238.000000
? What happened with 3238
integral part of the number?
PS. My specs: Win 10, Microsoft Visual Studio Community 2019