Literal |
Description |
---|---|
character |
Delimited by a single quote on the left side and a single quote on the right side. See Special Characters. |
integer |
Number comprising the integer from 0 to 9 with no leading zeros and no comma as punctuation. A minus sign can be prefixed to indicate a negative number. It can range from -263 to -263 -1 |
double |
Floating point number from -1.7E308 to +1.7E308 with about 14 to 15 significant digits written using E notation |
decimal or fixed point |
Any number specified with a decimal point: nnn.nn. |
Hexidecimal |
Number of the form 0xnn, where nn is an even number of characters consisting of the numbers 0 through 9 and/or the alphabetical characters, in upper or lower case, A through F. |
Octal |
Number of the form 0xnn, where nn includes any number of digits from 0 to 7 representing an octal number. If you code a decimal number with leading zeros: 010 you might expect this number to be decimal 10. However, our grammar interprets this as octal 10, which is the decimal number 8. |
Floating point |
Number expressed in standard floating point format: nnn.nnE+nn. |
Null |
Either “NULL”, “null” or “Null”. |
boolean |
Either “true” or “TRUE” or “true” or “false” or “FALSE” or “False”. |
Unicode |
Universal character encoding. Unicode provides a unique number for every character. This encoding standard provides the basis for processing, storage and interchange of text data in any language in all software and information technology protocols. See Unicode Literals for more information. |
The forward slash character (that is, "/") is processed in a character literal like any other character. For example, the following expression:
concat('Value of C2/C1=', tostring(C2/C1) );
yields:
Value of C2/C1=2