以下是引用lenglianxi在2004-8-12 16:03:24的发言: 也许?我想你的意思是否: 并不是将:12345678-> 1.2345678E8 而是将ltemp的值复制过来,作为double使用,那么你这么做 dtemp = *(double *)<emp 这样dtemp的值是0x75bcd15(123456789),代表1.6536e-34 |
No. there is no error in term of syntax.
You need a floating lib to support floating arithatic.