Value.UnaryNegation Operator
Computes the negative of a value.
public static Value operator -(Value a)
Remarks
If the value is a number, the negative of that number is returned.
If the value is null or a string, the number -0 (negative
zero) is returned.
Otherwise, a number containing the floating point value NaN (not a number) is returned.
Parameters
| Parameter | Description |
|---|---|
Value a |
The first value. |
Return Type
Value: A new Value, containing the remainder of
dividing two values .
Source
Defined in YarnSpinner/Value.cs, line 562.