discount_calculator
Calculate the final price after applying a percentage or fixed discount to an original amount.
Instructions
Calculate the final price after a discount (percentage or fixed amount).
Parameters:
original — Original price.
discount — Discount amount or percentage.
type — 'percent' (default) or 'fixed'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original | Yes | ||
| discount | Yes | ||
| type | No | percent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |