31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EXPRESSIONS<br />

TabJe 1-2: Result Types for Arithmetic Expressions (Cont.)<br />

Operator<br />

(Opera t ion)<br />

Type of F'i rst<br />

Operand<br />

Type of Second<br />

Operand<br />

Type of<br />

Result<br />

(division with<br />

truncation,<br />

modulus,<br />

and remainder)<br />

+,-<br />

INTEGER<br />

INTEGER<br />

INTEGER<br />

(addition,<br />

subt.raction)<br />

INTEGER<br />

REAL<br />

REAL<br />

REAL<br />

REAL, INTEGER<br />

REAL<br />

DOUBLE<br />

REAL, DOUBLE,<br />

INTEGER<br />

DOUBLE<br />

REAL,<br />

INTEGER<br />

DOUBLE<br />

DOUBLE<br />

3.1.2 Relational Expressions<br />

A relational expression or condition tests the relationship between<br />

two expressions. A relational expression consists of two scalar or<br />

string variables or arithmetic expressions, separated by one of the<br />

relational operators listed in Table 3-3.<br />

Table 3-3:<br />

Relational Operators<br />

Operator Example Meaning<br />

A = B<br />

A is equal to B<br />

A B A is not equal to B<br />

> A > B A is greater than B<br />

>= A >= B A is greater than or equal to B<br />

< A < B A is less than B<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!