Specifies whether or not to store numeric constants internally as high precision numbers or as 64 bit doubles when compiled.

Syntax

SET HIGHPRECISION ON | OFF

 

Description

When OFF (the default), numeric constants entered in the command window or in dBASE source code are stored, internally, as 64 bit doubles (the way they have been in all 32 bit versions of dBASE) during compilation.

When ON, numeric constants entered in command window or in dBASE Source Code are stored, internally, as High Precision Decimal Float values with 34 digits of precision. This will allow for a more accurate interpretation of fractional values.

To set HIGHPRECISION automatically at startup:

Add .INI file setting in section [OnOffCommandSettings]:

HIGHPRECISION=ON or OFF

In addition, you can check the current highprecision setting via:

? set("highprecision")

Or by running the List Status or Display Status command which now show the highprecision setting along with the other SET command settings.