The long data type
The long
data type represents a signed, 64-bit wide, integer.
By default, integers and integers represented with hexadecimal syntax are of type long
.
long
literals
To specify a long
literal, use one of the following syntax options:
Syntax | Description | Example |
---|---|---|
number | An integer. You don't need to wrap the integer with long() because integers are by default of type long . |
12 |
0x hex |
An integer represented with hexadecimal syntax. | 0xf is equivalent to 15 |
long(- number) |
A negative integer. | long(-1) |
long(null) |
Represents the null value. |
Learn more about syntax conventions.
Related content
- tolong()
- To convert the
long
type into a hex string, see tohex() function.
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre