Expression type and precision

Primary (single-operator) expression type and calculation precision depends on the operand that has higher precision class. There are 4 precision classes:

 

1. int (int, word, byte). In expressions, word and byte are implicitly converted to int.

2. unsigned int (pointers (including lpstr and interface pointers), unsigned int constants).

3. long (long).

4. double (double, OLE types).

 

The following are the exceptions:

 

Type of more complex expression can be found by splitting it to primary expressions.