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.

See BOM Native Types

TIBCO Business Studio - BPM Edition 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)