16/12/08 13:57:23.15 7Gd0E6lD.net
gcc 4.6.1だとこうなる
カオス
#include <inttypes.h>
#include <stdio.h>
int main(void)
{
uint64_t a = 0xFFFFFFFFFFFFFFFF;
double b = (double)a;
uint64_t c = (uint64_t)b;
printf( "a=%I64u\n", a); // 18446744073709551615
printf( "b=%lf\n", b); // 18446744073709552000.000000
printf( "c=%I64u\n", c); // 0
}