Unary Operation (Noun)
Meaning
An operation with exactly one operand.
Classification
Nouns denoting natural processes.
Examples
- The term unary operation often refers to operations like negation in which a single operand is modified.
- Many programming languages support the unary_minus operation to indicate that the following number is negative.
- A key feature of programming in most languages is the ability to perform a unary_operation such as the NOT operator in Boolean logic.
- An example of a unary operation in computer programming is the factorial exclamation mark that denotes mathematical factorial operations.
- Negating the sign of a number involves applying a unary operation to change the sign bit of the number's binary representation.