Numbers

Number types are represented as a set of digits with a possible decimal point separator, a grouping symbol, a minus sign and an exponent.

  • 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.

Note:

Big number literals are not supported in the business rule language. All literals manipulated in a rule must be within the range of the Java™ Double class, otherwise they are rounded to the closest Double value. The internal representation of numbers corresponds to Java doubles, and precision can be lost in conversion everywhere a number is passed as a parameter to a BOM method expecting a narrow type. This also happens when assigning an expression to a variable or a field. The IRL view of the rule editor allows you to see exactly where these conversions – represented by C®-style casts – take place.