Numeric Constants
Although the internal representation of an integer or floating-point constant is a string, these constants do not need to appear inside quotation marks in PSL scripts. Integer, floating-point, and hexadecimal constants can be used in the same way as in the C programming language. An example follows:
The result of arithmetic or math functions is stored in a string floating-point format, even when operands are integers and the result is an integer. Use the PSL function printf() or sprintf() if you need to display the result as an integer.
Hexadecimal literals
Hexadecimal numbers may be used as literals in PSL code, and are identified by using 0x as a prefix. Do not use quotation marks around hexadecimal literals. A value appearing in quotation marks will be interpreted as a string, not as the equivalent number. An example follows:
Hexadecimal numbers are represented internally as character strings of their decimal equivalent. To return a number in hexadecimal notation, use the PSL function printf() or sprintf().
Where to go from here