/prec 

Use

This command is used instead of the (x.y) accuracy to specify the output format of a variable.

Syntax:
[x0.y0;]
[#<var name1>=x1.y1[z];]
[#<var name2>=x2.y2[z];]

[x0.y0[z];]:
Defines the default value to be used for variable that do not have default values. If you do not specify anything, the default value (1.6) is used.

[#<Variable1>=x1.y1[z];]:
The variable uses the format x1.y1 if it is a numeric variable.

[#<Variable2>=x2.y2[z];]:
The variable uses the format x2.y2 if it is a numeric variable.
The variable can also be a field index. [z] defines the number of subsequent zeros that should be suppressed.

If the first part (figures before the decimal point) is omitted, the value "1" is defaulted; if the number of figures after the decimal point is not specified, the default value is used.

In WINDOWS, the part before the decimal point has no function, and is always regarded as being "1", regardless of the value defined in the /prec command.

Example of Default Format 1.6 (does not apply to Windows):

Number

3.4

pi

0

(.)

3.400000

3.141539

0.000000

(.z)

3.4

3.141539

0

(.4)

3.4000

3.1416

0.0000

(.4z)

3.4

3.1416

0

(3.)

__3.400000

__3.141539

__0.000000

(3.z)

__.3.4

__3.141539

__0

(3.4)

__3.4000

__3.1416

__0.0000

(3.4z)

__.3.4

__3.1416

__0

       

The normal format definition functions in the same way as always.

For an overview of all the commands available for changing templates for BOM evaluation, please refer to Changing Templates for BOM Evaluation.