HP Pascal/iX Reference Manual (31502-90022)
Table Of Contents
- Top of Document
- Preface
- Chapter 1 Introduction
- Chapter 2 Language Elements
- Chapter 3 Data Types
- Chapter 4 Expressions
- Chapter 5 The Declaration Section
- Chapter 6 Statements
- Chapter 7 Program Structure
- Chapter 8 Procedures and Functions
- Chapter 9 Standard Routines
- Chapter 10 Input and Output
- Chapter 11 System Programming Extensions
- Chapter 12 Compiler Options
4-: 5
Table 4-2. HP Pascal Operators
---------------------------------------------------------------------------------------------
| | | | |
| Operator | Actions | Type of Operands | Type of Results |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| + | addition | real, integer | real, integer |
| | set union | any set type | set |
| | concatenation | string, string literal| string |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| - | subtraction | real, integer | real, integer |
| | set difference | any set type | set |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| * | multiplication | real, integer | real, integer |
| | set intersection | any set type | set |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| / | division | real, integer | real |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| DIV | division with truncationinteger | integer |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| MOD | modulus | integer | integer |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| AND | logical 'and' | Boolean | Boolean |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| OR | logical 'or' | Boolean | Boolean |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| NOT | logical negation | Boolean | Boolean |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| < | less than | any simple type | Boolean |
| | | string or PAC | Boolean |
| | | | |
---------------------------------------------------------------------------------------------
| | | | |
| > | greater than | any simple type | Boolean |
| | | string or PAC | Boolean |
| | | | |
---------------------------------------------------------------------------------------------