C Chen Yu Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-24 #1 我想把一个稍大一点16进制数转换成10进制数,但又不想转成负数,像'$FFEEEEEE', 请问各路好汉,应该怎样做?
B Buder Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-24 #3 You may try this: d:=StrToInt('$FFEEEEEE'); (d 为长整型,可以到42亿呢...)
X xie ke Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-25 #4 强制转换,如: button1.caption:=inttostr($FFEEEEEE)
X xie ke Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-25 #5 procedure TForm1.FormCreate(Sender: TObject); var a:int64; begin a:=$FFEEEEEE; button1.caption:=inttostr(a); end;
procedure TForm1.FormCreate(Sender: TObject); var a:int64; begin a:=$FFEEEEEE; button1.caption:=inttostr(a); end;
C creation-zy Unregistered / Unconfirmed GUEST, unregistred user! 2001-02-25 #6 用 StrToInt64 ! —— 64位! Button1.Caption:=IntToStr(StrToInt64('$FFEEEEEE')); OK!