Previous Next

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:
Data type:
Access:
Applies to:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.