Logo

Programming-Idioms

History of Idiom 142 > diff from v6 to v7

Edit summary for version 7 by BBaz:
New Pascal implementation by user [BBaz]

Version 6

2016-08-14, 20:03:27

Version 7

2016-08-14, 20:20:11

Idiom #142 Hexadecimal digits of an integer

Assign to string s the hexadecimal representation (base 16) of integer x.

E.g. 999 -> "3e7"

Idiom #142 Hexadecimal digits of an integer

Assign to string s the hexadecimal representation (base 16) of integer x.

E.g. 999 -> "3e7"

Extra Keywords
hex hexa
Extra Keywords
hex hexa
Imports
uses sysutils;
Code
s := IntToHex(x);