For Newbie

Thursday, 3 November 2011

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

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);

Share on Facebook
Share on Twitter
Share on Google+
Tags :

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