Share via


+ Operator ("M" Reference)

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

The + operator can function as either a unary, binary, or multiplicity operator.

Operator Description

The unary + operator is predefined for the Number type and all its subtypes. The result of a unary + operation on a numeric type is the value of the operand.

The binary + operator is predefined for all Number and Text types and subtypes. For the Number type and all its subtypes, the + operator computes the sum of its two operands. For the Text type and all its subtypes, the + operator concatenates the string representations of the operands.

The multiplicity + operator is predefined for all types. When the + operator is located in the postfix position after a type, a collection of that type is created that can contain 1 or more members.