Object Pascal <-> C# | Hexadecimal literal
Object Pascal
hexadecimal literal
Description
$A12F
Output
- return - Integers
Examples
Object Pascal
Hexadecimal literal the possible of use:x := $1234; // x = 4660
y := 4 * $ff; // y = 1020
if x>$abc then
y := x / $a; // y = 466
.
C#
hexadecimal literal
Description
0xA12F
Output
- return - Integers
Examples
C#
Hexadecimal literal the possible of use:x = 0x1234; // x = 4660
y = 4 * 0xff; // y = 1020
if (x>0xabc)
y = (float)x / 0xa; // y = 466
You can find it in the following collections: constants
Hexadecimal literal in another programming language:
Differences to:
Share