Unary Adding Operators
Author: JTC1/SC22/WG9/ARG, by Randall Brukardt, ARG Editor

Ada Reference Manual — Legal Information

# 4.5.4 Unary Adding Operators

#### Static Semantics

1
The unary adding operators + (identity) and – (negation) are predefined for every specific numeric type T with their conventional meaning. They have the following specifications:
2
function "+"(Right : T) return T
function "-"(Right : T) return T
NOTES
3
15 For modular integer types, the unary adding operator –, when given a nonzero operand, returns the result of subtracting the value of the operand from the modulus; for a zero operand, the result is zero.

Ada 2005 and 2012 Editions sponsored in part by Ada-Europe