Function
negate(_:)
Performs numeric negation on a numeric value.
func negate(_ operand: any EcoreValue) throws -> any EcoreValue
Parameters
operand-
The numeric operand to negate
Return Value
The numeric negation of the operand
Discussion
Supports negation of all numeric types (Int, Double, Float) and returns the same type as the input operand.