1. Home
  2. Computing & Technology
  3. Delphi Programming
Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back

Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
 

IntToHex

unit
Sysutils
category
numeric formatting routines

declaration
function IntToHex(iValue, Digits: Integer): string;

description
Converts an integer to a string - hex representation.

Digits indicates the minimum number of hexadecimal digits to return.

example
var    i : integer;
    hex15: string;
	
i:=15;
hex15 = IntToHex(i,8);
//hex15='F'

in real code
Base Conversions, and more
Routines for converting Int to Bin, Int to Hex, Int to Roman and vice versa.

see also
IntToStr,


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.