Z zz770813 Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-01 #1 谁知道delphi16进制转10进制的数学函数,请详细些,谢谢
R rctm Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-01 #2 如:16进制 '1a10' strtoint('$'+'1a10')即可获得十进制整数
N nicai_wgl Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-01 #3 HEX -> Integer var i : integer s : string; begin s := '$' + ThatHexString; i := StrToInt(a); end;
J jfyes Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-02 #5 http://www.delphibbs.com/delphibbs/dispq.asp?lid=2532078 上面不是 楼主你不是提过这问题的吗? 怎么又。。。。。。。。。。
G gigi_hcl Unregistered / Unconfirmed GUEST, unregistred user! 2004-04-03 #6 一般十六进制是0xxx的形式,你只要传进后面两位就可以了! function int HexToInt(String Hex) var int HighHex; int LowHex; begin HighHex := Int(Char(Hex[0])); LowHex := Int(Cahr(Hex[1])); Result := HighHex * 16 + LowHex; end;
一般十六进制是0xxx的形式,你只要传进后面两位就可以了! function int HexToInt(String Hex) var int HighHex; int LowHex; begin HighHex := Int(Char(Hex[0])); LowHex := Int(Cahr(Hex[1])); Result := HighHex * 16 + LowHex; end;