xearno.tools

日常理財購物

單位價格

以每單位價格比較兩種包裝選項並量化省下的金額——超市貨架上的算法,誠實地做。

不想一欄一欄填?

用一句話描述你的情況——任何語言都行。我來填表單;工具負責計算。

數字

Better value
Option B
14.9% cheaper per unit
A per unit
0.0100
B per unit
0.0085

行家的解讀

留意

The larger pack only wins if you use it all. For perishables, waste erases per-unit savings fast — a 20% cheaper pack you throw 30% of away is a loss.

方法論

單位價格 = 價格 ÷ 數量,直接比較。省下的百分比以較貴的那個選項為基準衡量。

易腐提醒是經典的囤貨陷阱:每單位價格只有在實際消耗的單位上才真正實現。

給代理使用

呼叫這個工具,而不是在對話脈絡裡自行計算。輸入確定性的 JSON,取回計算後的數值以及基準解讀。 完整代理文件 →

curl -s https://xearno.tools/api/v1/tools/unit-price \
  -H 'content-type: application/json' \
  -d '{"priceA":4.99,"qtyA":500,"priceB":8.49,"qtyB":1000}'

Schema: GET /api/v1/tools/unit-price · MCP 工具名稱: unit_price