1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> #include <stdlib.h> int main() { union { double d; unsigned long long ull; } u; u.ull = 0x3fd5555555555555L; printf("%.55f\n", u.d); return EXIT_SUCCESS; }
1
0.3333333333333333148296162562473909929394721984863281250