XDecimal.sub

Creates a new XDecimal or XDecimalHI object that is the difference between two XDecimal or XDecimalHI objects.

Method of XDecimal, XDecimalHI

Syntax

sub(4.4, 2.2)

Parameters

Parameter Description
Value1 An XDecimal or XDecimalHI number from which Value2 will be subtracted (see below).
Value2 An XDecimal or XDecimalHI number that will be subtracted from Value1 (see above).

Description

A new XDecimal or XDecimalHI object is created with a value of the difference between Value1 and Value2.

Examples

The following illustrates how to use Global MetaScript to subtract one value from another value and display the results in alert boxes.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.