home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 December
/
Chip_2002-12_cd1.bin
/
tema
/
clin
/
CLIN.EXE
/
SRC
/
SRC.RAR
/
U.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Pascal/Delphi Source File
|
2002-09-20
|
316 b
|
25 lines
unit U;
interface
function Hex(Co:Byte):String;
implementation
function Hex(Co:Byte):String;
function H(C:Byte):String;
begin
if C<=9 then H:=Chr(C+$30) else
H:=Chr(C+Ord('A')-10);
end;
begin
Hex:='$'+H((Co div 16)and $F)+H(Co and $F);
end;
begin
end.