Determines the number of decimal places of numbers to display.

Syntax

SET DECIMALS TO [<expN>]

<expN>

The number of decimals places, from 0 to 18. The default is 2.

Description

Use SET DECIMALS to specify the number of decimal places of numbers you want dBASE Plus to display. SET DECIMALS affects the display of most mathematical calculations, but not the way numbers are stored on disk or maintained internally.

Excess digits are rounded when a number is displayed. For example, with the default setting of two decimal places, the number 1.995 is displayed as 2.00.

Use SET PRECISION to set the number of decimal places used in comparisons. SET DECIMALS and SET PRECISION are independent settings.

SET DECIMALS TO without <expN> resets the number of decimal places back to the default of 2.