| Reference > Rule Languages > Business Action Language > BAL Literals |
BAL Literals |
PREVIOUS NEXT |
This section describes the literal values used in BAL for these types:
Number types are represented as a set of digits with a possible decimal point separator, a grouping symbol, a minus sign and an exponent. For example:
10 (integer)
10.5 (decimal, with decimal point separator)
150,500.51 (decimal, with `000 grouping separator and decimal point separator)
-10 (negative integer)
10E-5 (exponent)
The lexical representation of numbers (the decimal point separator and the grouping separator) is locale-specific.
String literals are represented by a set of characters enclosed between double-quotes ("Text string").
To include certain special characters within a String, you must prefix them with a back slash (\). For example, to include a double-quote within a String, you would write \”. The back slash is required here to indicate that the String has not yet ended.
The following special character sequences are accepted within text strings:
\n (new line character)
\t (tab character)
\b
\r (carriage return character)
\f (line feed character)
\' (single quote)
\" (double quote)
\\ (backslash)
Several types of date and time are available.
In the following table, a is the symbol for AM or PM, and z is the time zone information.
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |