Note: information on this page refers to Ceylon 1.0, not to the current release.
+ (unary plus) operator
The right-associative, unary prefix
+ operator is used to clarify the positive value
of its operand.
Integer one = +1;
+ does not change the sign of a negative number:
Integer minusOne = +(-1);
+ operator is defined as follows:
See the language specification for more details.
The result type of the
- operator is the same as the
Invertible type of its operand.