Hybrid Integration 10.2 | Integrating Cloud Applications on Software AG Hosted Environment | Integration Cloud | Develop | Integrations | Built-In Services | Math | Summary of Math services | multiplyObjects
 
multiplyObjects
Multiplies one java.lang.Number object by another and returns the product.
Input Parameters
num1
java.lang.Number Number to multiply. See the Usage Notes for supported sub-classes.
num2
java.lang.Number Number to multiply. See the Usage Notes for supported sub-classes.
Output Parameters
value
java.lang.Number Product of num1 and num2.
Usage Notes
This service accepts the following sub-classes of java.lang.Number: java.lang.Byte, java.lang.Double, java.lang.Float, java.lang.Integer, java.lang.Long, java.lang.Short.
This service applies the following rules for binary numeric promotion to the operands in order:
*If either operand is of type Double, the other is converted to Double.
*Otherwise, if either operand is of type Float, the other is converted to Float.
*Otherwise, if either operand is of type Long, the other is converted to Long.
*Otherwise, both operands are converted to type Integer.
These promotion rules mirror the Java rules for numeric promotion of numeric types.

Copyright © 2015- 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.