is-opposite
is-opposite(
reference: numeric
)
Returns true if the numeric value passed as argument additive inverse of the numeric value passed as parameter. Returns false otherwise.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
reference | numeric | Yes | A numeric value to compare to the argument. |
Argument evaluation
reference: Evaluated once in the enclosing context.
Examples
10 | is-opposite(5) → #false
Kind: Predicate
Scope: numeric
Aliases: opposite, numeric-is-opposite