Home » Swift Unary Minus-Plus Operator

Swift Unary Minus-Plus Operator

by Online Tutorials Library

Unary Minus Operator

The unary minus operator is a prefixed (-) sign attached with a value.

The unary minus operator (-) is placed directly before the value, without any white space.


Unary Plus Operator

The unary plus operator (+) returns the returns the exactely same value it operates on, without any change.

Next Topic

You may also like