percentage_calc
Calculate percentages instantly: find X% of Y, determine what percent X is of Y, compute percentage change, split tips, apply discounts, and add markups with clear results.
Instructions
Common percentage calculations. Operations: percent_of (X% of Y), what_percent (X is what % of Y), percentage_change (old to new), tip (bill + tip% + optional split), discount (price - discount%), markup (cost + markup%).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | The part value (for what_percent: X is what % of value) | |
| value | No | The base value (for percent_of: Y, for what_percent: the whole, for tip: bill amount, for discount: original price, for markup: cost) | |
| percent | No | The percentage value (for percent_of, tip, discount, markup) | |
| new_value | No | New value (for percentage_change) | |
| old_value | No | Old value (for percentage_change) | |
| operation | Yes | The percentage operation to perform | |
| split_ways | No | Number of people to split the bill (for tip, default: 1) |