unary
English · adjective; noun
Examples, page 1
- Both unary operators (+, -) always cast the operand to a number. — Wikipedia: JavaScript (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
- This is misleading: the {} is interpreted as an empty code block instead of an empty object, and the empty array is cast to a number by the remaining unary + operator. — Wikipedia: JavaScript (Wikipedia contributors). Licence: cc-by-sa-4.0. — Mova's open texts (cc-by-sa-4.0)
- These operators work as in traditional mathematics; with the same precedence rules, the infix operators + and - can also be unary, to represent positive and negative numbers respectively. — Wikipedia: Python (programming language) (Wikipedia contributors). Licence: cc-by-sa-4.0. — an example found by Mova's corpus index (cc-by-sa-4.0)
This page in Markdown https://md.dictionary.elamur.ai/free/en/english/unary/examples/1/