#### Addition and Subtraction:

The operators + and '-' perform addition and subtraction of numbers, in the usual way. Once again, if the operands are of different types, XPath 2.0 specifications say one of them is promoted but numeric type promotion is currently unsupported by PsychoPath. The result is of the same type as the operands.

Examples of above would be:

     -(5 + 7)

result:

1. xs:integer: -12

    -xs:float(’1.23’)

result:

1. xs:float: -1.23

    -xs:double(’1.23’)

result:

1. xs:double: -1.23

    (+5 - +7)

result:

1. xs:integer: -2

    (1 to 5 div 0 )

result:

- FAIL (division by zero!)

    5*6*10*5*96 div 20 div 3 div 1

result:

1. xs:decimal: 2400.0

    31 mod 15

result:

1. xs:integer: 1