Code:
#include <stdio.h>
int main()
{
printf(
" %f, %u, %x,\n", 1.0f, 1.0f, 1.0f);
return 0;
}
Output: 1.000000, 1072693248, 0,
Code:
#include <stdio.h>
int main()
{
printf(
" %x, %f, %u,\n", 1.0f, 1.0f, 1.0f);
return 0;
}
Output: 3ff00000, 0.000000, 0
Code:
#include <stdio.h>
int main()
{
printf(
" %x, %u, %f,\n", 1.0f, 1.0f, 1.0f);
return 0;
}
Output: 3ff00000, 0, 1.000000
Is this just an issue with the number of bytes that %u and %x consume, and how do I get the values to become consistent?