--> How to convert a decimal number to a hexadecimal number in Delphi | Delphi Tips Trick

For Newbie

Thursday 3 November 2011

How to convert a decimal number to a hexadecimal number in Delphi

| Thursday 3 November 2011
decimal to hexa decimal

How to convert a decimal number to a hexadecimal number, for example 255 to FF?

this is the way

Var i : integer;
s : string;
begin
i := 255;
s := IntToHex(i,2);
showmessage(s);

Related Posts

No comments: