Precision Command

Controls the precision of numbers displayed when you use the Print and Scroll commands.

Syntax

Precision left, right-min, right-max

where

left Specifies the number of places to the left of the decimal point to fill with 0s if needed.
right-min Specifies the minimum number of places to display to the right of the decimal point (that is, the number of places to fill with 0s if needed).
right-max Specifies the maximum number of places to display to the right of the decimal point.

Remarks

The default values are left = 1, right-min = 0, right-max = 3. The maximum value of all three arguments is 9.

The following are some examples of the results the Precision command displays when used with specific settings.

Value is 1, left=1, right-min=0, right-max=0, displays 1

Value is 1, left=1, right-min=0, right-max=2, displays 1

Value is 1, left=1, right-min=2, right-max=2, displays 1.00

Value is 1, left=3, right-min=0, right-max=0, displays 001

Example

DECLARE iVAL

iVAL = 1.001

PRECISION 1, 0, 0

PRINT iVAL

Result: 1