Decimal
Gets the number of decimal places for the specified account. This function can be used in these types of rules:
-
Calculation
-
Translation
-
Consolidation
-
Allocation
Syntax
HS.Account.Decimal("AccountName")
HS.Account.Decimal("")
Note:
Use a blank string (""
) to apply this function to the current account when using the Sub Consolidate subroutine.
HS.Account.Decimal(Var1)
Table 11-14 Syntax for Decimal Function
Parameter | Description |
---|---|
AccountName |
Name of a valid Account member |
Var1 |
VBScript variable representing an Account member |
Return Value
An integer representing the decimal value assigned to the account. Valid values are 0 to 9.
Example
In this example, if the number of decimal places assigned to the Sales account is 2, then statements between the If...Then and End If statements are executed.
If HS.Account.Decimal("Sales") = 2 Then
...
End If