precision()

Examples


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

Syntax

precision(vcurrency)

Parameters

vcurrency – A variable currency field or variable.

Return value

An integer containing the number of digits.

Comments

For variable currency fields, the precision value returned is based on the storage size of the underlying data type. The value returned is computed according to this formula:

(2 x Storage Size) - 1

For variable currency variables, the value returned is always 23. For currency fields or variables, the value returned is always 19.


Documentation Feedback