数组转双精度浮点数(double):
BYTE a[8] = {0, 0, 0, 0, 0, 0, 0x10, 0x40};
double b = *(double *)&a;
双精度浮点数(double)转数组:
double d=1.2345;
byte *b=(byte*)(&d);
数组转双精度浮点数(double):
BYTE a[8] = {0, 0, 0, 0, 0, 0, 0x10, 0x40};
double b = *(double *)&a;
双精度浮点数(double)转数组:
double d=1.2345;
byte *b=(byte*)(&d);