Developing Apama Applications > Apama EPL Reference > Lexical Elements > Literals > Integer literals > Base 16 literals
Base 16 literals
Base 16 integral literal values begin with the characters 0x, and consist of a combination of the decimal digits 0 through 9 and the hexadecimal digits a through f and A through F.
Base16IntegerLiteral
Examples
j := 0x0;
j := 0x0d;
j := 0x0aFF;
j := 0x7fffffffffffffff;
The number 0x7fffffffffffffff or (263 - 1) is the largest base 16 integer literal value that can be represented.
You cannot specify a negative hexadecimal literal. The correlator treats hexadecimal literals as unsigned integers. For example, the following is illegal:
-0x43af
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.