Creates a new XDecimal or XDecimalHI object that is the sum of two XDecimal or XDecimalHI objects.
Method of XDecimal, XDecimalHI
Syntax
add(Value1, Value2)
Parameters
Parameter | Description |
---|---|
Value1 | An XDecimal or XDecimalHI number that will be added to Value2 (see below). |
Value2 | An XDecimal or XDecimalHI number that will be added to Value1 (see above). |
Description
A new XDecimal or XDecimalHI object is created with a value of the sum of Value1 + Value2.
Examples
The following illustrates how to use Global MetaScript to add two values and display the results in alert boxes.