Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : DECIMALS attribute

DECIMALS attribute

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 set, the AVM rounds off any source that you assign to BUFFER-VALUE 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.
The attribute also applies to temp-table buffer fields. 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: Read-only
Applies to: Buffer-field object handle