Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 12 Arithmetic Processing : Strings as Operands

Strings as Operands
Converting Strings to Numeric Syntax
If an operand is of syntax C, UN, V, or W, the string is converted to a numeric syntax based on the value of the string. TIBCO Object Service Broker applies the following conversion rules to string data used in arithmetic operations:
Floating point is assigned if the string has a numeric to the right and left of an exponent sign (E). An optional period (.) is also allowed before the exponent sign.
If a binary or packed field cannot hold the value, float is used.
If one operand of an arithmetic operation is of syntax RD, it is converted to the syntax of the other operand prior to the operation. Arithmetic operations are not permitted between two RD operands.
Conversion of Numbers to Strings
When a number is converted to a variable length string, non-significant zeros are removed. For example:

1
This can also be expressed as 00500.0200e-013.


Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved