Language Reference/Built-in entities/Operators

See also.


 * The operators are listed from highest to lowest precedence
 * All division and multiplication operators have same precedence.
 * The the power operator is right associative
 * All other operators are left associative.

All binary operators takes two arguments of same base type and returns a value of that base type. Operands and result may be converted using ordinary subtype rules.

Integral division
div and quot are different integral division operators.


 * div truncates towards minus infinite. mod is the remainder corresponding to div.
 * quot truncates towards zero. rem is the remainder corresponding to quot.

For positive results div</vp> and quot</vp> have same functionality.

The difference can be seen in this table: