Working with Numeric Types

CDM supports the data types Floating Point Number and Fixed Point Number.

There are two types of number:
  • Floating point number. A floating point number does not allow you to define a fixed number of decimal places.
  • Fixed point number. A fixed point number allows you to specify the number of decimal places. This is defined in TIBCO Business Studio - BPM Edition.
See BOM Native Types
TIBCO BPM Enterprise provides 4 functions for use with numbers. You should use these functions when mathematical precision is important as they return more accurate results.
Attribute/Method Description
add(Number) : Number Adds one Javascript Number to another with fixed point precision. For example, a.add(b)
subtract(Number) : Number Subtracts one Javascript Number from another with fixed point precision. For example, a.subtract(b)
divide(Number) : Number Divides one Javascript Number by another with fixed point precision. For example, a.divide(b)
multiply(Number) : Number Multiplies one Javascript Number by another with fixed point precision. For example, a.multiply(b)