From Clomosy Docs

Revision as of 13:58, 24 December 2024 by ClomosyAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The IntToHex function converts a Value integer into a hexadecimal format sting of at least Digits characters wide.
The resulting string has no prefix character.

Example

var
  numberValue :Integer;
{
  numberValue = 8090;
  ShowMessage(IntToStr(numberValue)+' decimal = '+IntToHex(numberValue, 1));
 
  ShowMessage(IntToStr(numberValue)+' decimal = '+IntToHex(numberValue, 8));
}

Output:

DecHex.png

See Also