Negate
This formula returns the negation of the given integer or decimal. ie:
If the value returned by the components formula is 12, this formula will
return -12 and vice versa.
Returns
integer | decimal
JSON Format
{
"type": "negate",
"components": ...
}
RPG Script
This component can be written in RPG Script as:
negate(...)
Fields
| Field | Type | Required | Description |
|---|---|---|---|
components | StatFormulaComponent | ✓ | The formula for the integer or decimal value that should be negated.@type integer | decimal |