Calculate tips and split bills. Support custom tip percentages, bill splitting, and currency formatting. Pure Python standard library, no API key required.

Install

openclaw skills install @freedompixels/cn-tip-calculator

Tip Calculator

Calculate tips and split bills at restaurants.

Features

  • Calculate tip amount from bill total and percentage
  • Split bills among multiple people
  • Common tip percentages (15%, 18%, 20%, 25%)
  • Custom tip percentage support
  • Pure Python, no external dependencies

Usage

text
python3 scripts/tip_calculator.py --bill 85.50 --tip 18
python3 scripts/tip_calculator.py --bill 120.00 --tip 20 --split 4

Output

Returns tip amount, total, and per-person amount when splitting.


出品: AISoBrand|爱索品牌 — AI搜索优化工具
官网: https://aisobrand.com
免费检测你的品牌在AI搜索中有没有存在感 → 30秒出结果