scale()

Examples


Returns the number of decimal digits for a variable currency field or variable.

Syntax

scale(vcurrency)

Parameters

vcurrency – A variable currency field or variable.

Return value

An integer containing the number of digits.

Comments

For variable currency fields, the scale value returned is based on the decimals setting of the underlying data type. For variable currency variables, the value returned is based on the value stored in the field. For currency fields or variables, the value returned is always 5.


Documentation Feedback