Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# 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)`

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.