finance

Use this when you want penny-accurate tip and bill-split figures.

Use this when you want penny-accurate tip and bill-split figures. Given a bill amount, a tip percentage, and an optional number of people (default 1; values below 1 are treated as 1), returns the tip amount, grand total, and the per-person tip and per-person total, all rounded to cents. Deterministic: same input, same output. Example: bill=120, tipPercent=18, people=4 -> tipAmount=21.6, total=141.6, perPersonTotal=35.4.

post/v1/tip

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/tip
  • Auth: none declared

Request body

billnumber required

The pre-tip bill amount in dollars. Required. Must be zero or positive.

tipPercentnumber required

The tip as a percentage of the bill (e.g. 20 for 20%). Required. Must be zero or positive.

peopleinteger

Number of people splitting the bill. Optional, defaults to 1; values below 1 are treated as 1.

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.