The long data type
long data type represents a signed, 64-bit wide, integer.
Literals of the
long data type can be specified in the following syntax:
Where Value can take the following forms:
- One more or digits, in which case the literal value is the decimal representation of these digits. For example,
long(12)is the number twelve of type
- The prefix
0xfollowed by one or more Hex digits. For example,
long(0xf)is equivalent to
- A minus (
-) sign followed by one or more digits. For example,
long(-1)is the number minus one of type
null, in which case this is the null value of the
longdata type. Thus, the null value of type
KQL also supports literals of type
long without the
) prefix/suffi for the first two forms only. Thus,
123 is a literal of type
long, as is
-2 is not a literal (it is currently interpreted as the unary function
- applied to the literal
2 of type long).
For converting long into hex string - see tohex() function.