2.2.2.2.1 Value Class

Value Class is the most common type of operand, and represents a single value or array of values. When Ptg records (section 2.5.198.25) with reference contents are used by an operator that requires Value Class operands, the Ptg records 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.198.84) because the subsequent PtgAdd operator (section 2.5.198.26) 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 operand (section 2.5.198.32).