XDecimal.div

Creates a new XDecimal object that is the result of a division of one XDecimal object by another XDecimal object.

Method of XDecimal, XDecimalHI

Syntax

XDecimal.div(4.4, 2.2)

Parameters

Parameter Description
Value1 An XDecimal or XDecimalHI number that will be divided by Value2 (see below).
Value2 An XDecimal or XDecimalHI number that will be used to divide Value1 (see above).

Description

A new XDecimal or XDecimalHI object is created with a value of the result of dividing Value1 by Value2.

Examples

The following illustrates how to use Global MetaScript to divide one value by 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.