0xAD2
0xAD2 is a hexadecimal literal commonly encountered in programming and computing. The value expressed by this notation is 2770 in decimal. Hexadecimal digits A, D, and 2 correspond to 10, 13, and 2, and the calculation follows the positional base-16 rule: (10 × 256) + (13 × 16) + 2 = 2770. The 0x prefix is a conventional indicator of hexadecimal notation in many programming languages.
In typical practice, 0xAD2 can appear as a constant in source code, or as part of data
Usage scenarios for 0xAD2 include representing small bitfields, offsets, or constants used in bitwise operations, as
See also: hexadecimal notation, hex literals, decimal conversion, endianness.