PreviousNextIndex

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. If the value of DECIMALS is nonzero, the AVM rounds off any source that you assign to BUFFER-VALUE to the specified number of decimal places before completing the assignment. Otherwise, the assignment executes without rounding off the source value.

Valid values are zero (0) to ten (10).

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: Readable

Applies to: Buffer-field object handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex