Indicates the number of decimal places, after the decimal point, that
are stored for a buffer-field object that corresponds to a DECIMAL field. Valid values are
zero (0) to ten (10). When
DECIMALS is explicitly set (or is
inherited from a database field via LIKE), the AVM rounds off any value that you assign via
the
BUFFER-VALUE() method of a buffer field handle (or via
the "::" syntax on a buffer handle) to the specified number of decimal places before
completing the assignment. If DECIMALS is not set, the AVM rounds the value off to 10 decimal
places if necessary.
If the WRITE-XML() method is used on the object
containing the buffer field, then the XML Document generated will write the decimal field
with the number of decimal places specified.
Note: The AVM
determines the number of decimal places to display, as opposed to store, from the FORMAT
attribute (not the DECIMALS attribute) of the buffer-field.
Data type: INTEGER
Access: Readable/Writeable; Read-only if the buffer-field object
handle is for a database field
Applies to:
Buffer-field object handle