Plus operation

Learn how to denote a positive value.

The plus operation indicates that a numeric value is positive. You can use it when you want to specify the sign of a number explicitly or convert a value implicitly to a numeric type.

You can use the plus operator by placing a + sign before a numeric value:

+/*<operand>*/
Try in Playground

Here is a practical example:

Note that, since it was already a number, the operation had no effect except to indicate the number's sign.