Visual Basic .NET <-> JavaScript | Hexadecimal literal

Visual Basic .NET

hexadecimal literal

Description

 &HA12F

Output

Examples

Visual Basic .NET

Hexadecimal literal the possible of use:
x = &H1234       ' x = 4660
y = 4 * &Hff     ' y = 1020
if x>&Habc then
  y = x / &Ha    ' y = 466
end if
.
JavaScript

hexadecimal literal

Description

 0xA12F

Output

Examples

JavaScript

Hexadecimal literal the possible of use:
x = 0x1234;       // x = 4660
y = 4 * 0xff;     // y = 1020
if (x>0xabc)
  y = x / 0xa;    // y = 466

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