percentage increase
percentage_increaseCalculate the percentage change between an old value and a new value. Determines whether the change is an increase or decrease, the absolute change, and the percentage change. Essential for financial analysis (stock price changes, revenue growth), scientific measurements (before/ after experiments), performance benchmarks, and population statistics. A positive percentage indicates growth; negative indicates decline. Division by zero (old_value = 0) is handled gracefully.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_value | Yes | The new or ending value | |
| old_value | Yes | The original or starting value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change | Yes | The signed difference (new_value - old_value) | |
| is_increase | Yes | True if new_value > old_value, false otherwise | |
| absolute_change | Yes | Absolute value of the change | |
| percentage_change | Yes | Percentage change from old to new value |