The .PARameter record is used to define constants for use in subsequent .PARameter, .CALCulation, or circuit element value records. The .PARameter record can take one of two forms:
.PAR name F1
or
.PAR name { expression }
where 'name' is the name given to the specified parameter, F1 is a real number, and 'expression' is a calculated expression in Reverse Polish Notation (RPN). A .PAR calculation is specified using Reverse Polish Notation (RPN) operators and a stack data structure. See the section on RPN for details of this syntax and of the CCICAP implementation.
The parameter records within a run are processed as the input file is read in. The expressions used on parameter records can reference previously defined parameters.
There are 2 named parameter constants:
| Parameter Name | Value |
| E | 2.718281828 |
| PI | 3.141592654 |
Examples:
* first form of .par record:
.PAR fo 16.384e6 * set fo in Hertz.
* using built in parameters '2' and 'PI':
.PAR 2pi { PI 2. X } * defines the value of 2 * pi.
* using predefined parameters 'fo' and '2pi':
.PAR wo { fo 2pi X } * set wo in rps.