Pascal - Hexadecimal literal

Hexadecimal integer constant, also known as base 16 constant. it is from combination of following hexadecimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a/A, b/B, c/C, d/D, e/E, f/F

hexadecimal literal

Description

 $A12F

Output

Compatible programing languages:
Object Pascal | Free Pascal

Examples

Pascal

Hexadecimal literal the possible of use:
x := $1234;       { x = 4660}
y := 4 * $ff;     { y = 1020}
if x>$abc then
  y := x / $a;    

Pascal

Other pieces of example codes:
$AF
$AC xor k
i * $FF
$12AB shl j
$ff >= y
$f shl 5

You can find it in the following collections: constants
Languages: en hu cz sk