Percentage Calculator API
Percentages: X% of Y, X as a percentage of Y, change from X to Y, increase or decrease X by Y%.
POST /api/v1/tools/percentage-calculatorMCP percentage_calculatorCalculatorsWork out percentages instantly: X% of Y, what percent one number is of another, percentage increase or decrease, and adding or subtracting a percentage.
Input
Send these as a JSON object. Unknown fields are rejected.
- mode
- percentOf, whatPercent, change, increase or decrease. (string, one of percentOf, whatPercent, change, increase, decrease, required)
- a
- First number. (number, required)
- b
- Second number. (number, required)
curl https://pithlab.com/api/v1/tools/percentage-calculator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"mode":"percentOf","a":15,"b":80}'Example response
{
"ok": true,
"result": {
"value": 12,
"text": "15% of 80 is 12"
}
}