Yüzde Hesaplama: API ve MCP
Yüzde Hesaplama için REST ve MCP başvurusu: girdi alanları, sınırlar, çıktılar, örnek istek ve gerçek yanıt. Ücretsiz, kayıt yok.
GET /api/v1/tools/math.percentage/mcp/math
- Kimlik
math.percentage- Sürüm
- 1.0.0
- Erişim
- Ücretsiz
- Araç sayfası
- Yüzde Hesaplama
- Şema
GET /api/v1/tools/math.percentage
Girdiler
| Alan | Tür | Sınırlar | Varsayılan | Açıklama |
|---|---|---|---|---|
mode | string | percentOf | whatPercent | discount | increase | percentOf | Hesaplama |
part | number | ≥ -1.000.000.000.000.000, ≤ 1.000.000.000.000.000 | Parça (A) | |
amount (zorunlu) | number | ≥ -1.000.000.000.000.000, ≤ 1.000.000.000.000.000 | Sayı (B) | |
percent | number | ≥ -10.000, ≤ 10.000 | Yüzde (%) |
Çıktılar
| Alan | Tür | Açıklama |
|---|---|---|
result | number | Sonuç |
saving | number | İndirim tutarı |
increased | number | Artış sonrası |
decreased | number | İndirim sonrası |
Örnek istek
curl -X POST https://hesaplayici.com/api/v1/tools/math.percentage/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"mode":"percentOf","amount":1000,"percent":20},"locale":"tr"}'Örnek yanıt
{
"output": {
"result": 200,
"increased": 1200,
"decreased": 800
},
"steps": [
{
"id": "result",
"formula": "yüzde tutarı = miktar × yüzde / 100",
"substitution": "yüzde tutarı = 1.000 × 20 / 100",
"value": 200
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "tr"
},
"citation": {
"url": "https://hesaplayici.com/matematik/yuzde-hesaplama",
"title": "Yüzde Hesaplama"
}
}