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