Scale

Gets the scale of the specified currency. This function can be used in these types of rules:

Syntax

HS.Currency.Scale("Currency")
HS.Currency.Scale(Val1)

Table 76. Syntax for Scale Function

Parameter

Description

Currency

Name of a valid currency.

Var1

A VisualBasic variable.

Return Value

A number indicating the scale of the specified currency (0 to 9). Specifies the unit in which amounts are displayed and stored for the currency by identifying where the decimal point is placed. The return values are as follows:

Example

In this example, if the scale for French francs (FF) is 3, then statements between the If...Then and End If statements are executed:

If HS.Currency.Scale("FF") = 3 Then
  ...
End If