Amount shr 16如果Amount是Float类型,怎么解决?
Amount := StrToInt64(tA.Text);
tmp[0] := $E2;
tmp[1] := (Amount shr 16) and $FF; // Amount MSByte
tmp[2] := (Amount shr 8) and $FF; // Amount middle byte
tmp[3] := Amount and $FF;
如果Amount是Float类型,怎么解决?这个例子是var Amount:DWORD;
欢迎贴代码,谢谢!