Returns the negation of a value. Resultant value type varies depending upon the input.
Operator | Value | Result | |
---|---|---|---|
- | BOOLEAN[false] | = | FLOAT[NaN] |
- | BOOLEAN[true] | = | FLOAT[NaN] |
- | FLOAT[Infinity] | = | FLOAT[-Infinity] |
- | FLOAT[-Infinity] | = | FLOAT[Infinity] |
- | FLOAT[NaN] | = | FLOAT[NaN] |
- | INTEGER[0] | = | INTEGER[0] |
- | FLOAT[0.0] | = | FLOAT[0.0] |
- | INTEGER[10] | = | INTEGER[-10] |
- | INTEGER[3] | = | INTEGER[-3] |
- | FLOAT[10.0] | = | FLOAT[-10.0] |
- | FLOAT[3.0] | = | FLOAT[-3.0] |
- | FLOAT[10.5] | = | FLOAT[-10.5] |
- | FLOAT[3.5] | = | FLOAT[-3.5] |
- | INTEGER[-10] | = | INTEGER[10] |
- | INTEGER[-3] | = | INTEGER[3] |
- | FLOAT[-10.0] | = | FLOAT[10.0] |
- | FLOAT[-3.0] | = | FLOAT[3.0] |
- | FLOAT[-10.5] | = | FLOAT[10.5] |
- | FLOAT[-3.5] | = | FLOAT[3.5] |
- | STRING[] | = | FLOAT[NaN] |
- | STRING[ ] | = | FLOAT[NaN] |
- | STRING[0] | = | FLOAT[NaN] |
- | STRING[0.0] | = | FLOAT[NaN] |
- | STRING[10] | = | FLOAT[NaN] |
- | STRING[3] | = | FLOAT[NaN] |
- | STRING[10.0] | = | FLOAT[NaN] |
- | STRING[3.0] | = | FLOAT[NaN] |
- | STRING[10.5] | = | FLOAT[NaN] |
- | STRING[3.5] | = | FLOAT[NaN] |
- | STRING[-10] | = | FLOAT[NaN] |
- | STRING[-3] | = | FLOAT[NaN] |
- | STRING[-10.0] | = | FLOAT[NaN] |
- | STRING[-3.0] | = | FLOAT[NaN] |
- | STRING[-10.5] | = | FLOAT[NaN] |
- | STRING[-3.5] | = | FLOAT[NaN] |
- | STRING[apple] | = | FLOAT[NaN] |
- | STRING[banana] | = | FLOAT[NaN] |
- | STRING[NaN] | = | FLOAT[NaN] |
- | STRING[infinity] | = | FLOAT[NaN] |
- | LIST[[]] | = | FLOAT[NaN] |
- | LIST[[BOOLEAN[true], INTEGER[3], FLOAT[5.0], STRING[orange]]] | = | FLOAT[NaN] |