Calculates the additive inverse of a value.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
operand
The value to negate.
Discussion
The unary minus operator (prefix -
) calculates the negation of its operand. The result is always exact.
Note
This documentation comment was inherited from Floating
.