2.2.2.2.1 Value Class

The value class operand is the most common type of operand, and represents a single value or array of values. When Ptgs (section 2.5.98.16) with reference contents are used by an operator that requires value class operands, the Ptgs can be stored as value class operands rather than reference class (section 2.2.2.2.2) operands. For example, in a formula where the contents of A1 is added to the integer value 1, the value of cell A1 is pushed onto the stack as a value class operand PtgRef (section 2.5.98.68) because the subsequent PtgAdd (section 2.5.98.17) operator requires value class operands. Arrays are stored in a similar fashion. For example, when adding the array of values {1,2,3,4,5,6}, the values are stored in a PtgArray (section 2.5.98.23) operand.