D dreamya Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-02 #1 我从串口收到一个32位的数,我怎么把他转换为浮点数显示出来,谢谢
I iie Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-20 #2 move(four_bytes, data_real32, 4);
M mazhayang Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-22 #3 var s:^single; copymem(byte,s,sizeof(single)); 试试吧
M mazhayang Unregistered / Unconfirmed GUEST, unregistred user! 2002-09-23 #5 var s:^single; //转化的浮点数 b:array[1..4] of byte //4字节数据 begin copymemory(s,@b,sizeof(single)); showmessage(formatfloat('0.####',s^)); end
var s:^single; //转化的浮点数 b:array[1..4] of byte //4字节数据 begin copymemory(s,@b,sizeof(single)); showmessage(formatfloat('0.####',s^)); end