Currency rounding calculator
Round an amount to its currency's minor unit (ISO 4217: 2 decimals for EUR, 0 for JPY, 3 for KWD) and to a country's cash rounding rule, such as 0.05 in Canada.
- Version 1
- Checked against 18 published values
- Free, no sign-up
Result: Japanese yen have no decimals
| Rounded The amount in the currency's minor unit, with every decimal shown (10.50, 1050 for JPY, 1.235 for KWD). |
1235 |
|---|---|
| Minor units The rounded amount as a whole number of minor units (1050 for 10.50 EUR), as a string so it stays exact. Most payment APIs take amounts in this form, though a few use other minor units than ISO 4217 for some currencies, so check yours. |
1235 |
| Decimals The currency's ISO 4217 minor unit. |
0 |
| Currency name The currency's English name. |
Japanese yen |
| Difference rounded − amount, exactly. |
0.5 |
Calculator money/round@1.
How it is calculated
rounded = round(amount × 10^d) ÷ 10^d with d = ISO 4217 minor unit; cash = rounded to the nearest multiple of the step, ties and small totals per the country's ruleRounds an amount of money the way the currency and the country require. First it rounds to the currency's minor unit from ISO 4217, the international list of currency codes: cents for USD and EUR, whole yen for JPY, three decimals for the Kuwaiti dinar. Then, if you give a country, it applies that country's rule for rounding cash totals in countries that have withdrawn their smallest coins, such as 0.05 in Canada, Australia and several euro countries, 0.10 in Israel, a whole krona in Sweden or 10 pesos in Chile. There are 23 countries, and every rule follows the country's law, central bank or government guidance, cited in the references, including the special cases: Finland and Estonia never round a total of 0.01 or 0.02 to zero, Slovakia rounds it up to 0.05, and Chile rounds 5 pesos down. You can also give your own cash step.
- The amount is rounded to the minor unit first and the cash rule is applied to that, because prices and totals are always in whole minor units before cash rounding.
- cash_rule says what the country's source requires, including whether rounding is mandatory or up to the shop, and whether card payments are rounded. Switzerland has no legal rule; its official guidance only allows rounding cash totals down, so CH always rounds down to 0.05.
- Where a country's source does not say which way a total exactly halfway between two steps goes (New Zealand at 0.05, Denmark at 0.25 and 0.75, the Czech Republic at 0.50), it is rounded up with a CASH_TIE_ASSUMED warning unless you set cash_tie.
- Cash rounding applies to the total to pay in cash, not to each item, and in most of these countries only to cash: card and bank payments are paid to the cent.
- A negative amount (a cash refund) is rounded like the positive amount and made negative.
- Codes without a minor unit in ISO 4217 (gold, silver, units of account such as XDR) are refused. Withdrawn codes such as BGN (replaced by the euro on 1 January 2026) are not accepted.
References
- ISO 4217 List One, current currencies and funds (SIX, the maintenance agency)
- ISO 4217 amendment 180: Bulgaria adopts the euro (1 January 2026)
- ACCC: Rounding and EFTPOS transactions (11 December 2000), quoting the 1991 guideline
- SPF Economie: L'arrondi obligatoire souffle ses 4 bougies (30 November 2023)
- Central Bank of The Bahamas: Penny facts, FAQs on the elimination of the one cent coin
- Canada Revenue Agency: GST/HST Info Sheet GI-131, Phasing Out of the Penny (December 2012)
- SECO: FAQ zur Preisbekanntgabe (prices ending in 9 centimes; rounding down cash totals)
- SUSESO: Ley 20.956, artículo 13 (rounding of cash payments)
- Czech National Bank: Jak postupovat při zaokrouhlování po ukončení platnosti 50haléřových mincí (Act 634/1992, section 3)
- Bekendtgørelse nr. 928 af 2008 om afskaffelse af 25-øren som gyldigt betalingsmiddel, section 2
- Eesti Pank and Ministry of Finance: The rounding rule (booklet, 2024)
- Laki euromääräisten maksujen pyöristämisestä 890/2000, sections 1 and 2
- 2008. évi III. törvény az 1 és 2 forintos címletű érmék bevonása következtében szükséges kerekítés szabályairól, sections 1 to 3
- Central Bank of Ireland: Rounding
- Bank of Israel: Abolition of the 5 agorot coin (in Hebrew, updated 1 May 2024)
- Decreto-legge 24 aprile 2017, n. 50, article 13-quater (coordinated text)
- Bank of Jamaica: Guidance on the demonetization of coins
- Lietuvos bankas: Apvalinimas (rounding of cash payments)
- Bank Negara Malaysia: Introduction of a rounding mechanism for over-the-counter payments
- Rijksoverheid: Mogen winkeliers betalingen afronden op 0 eurocent of 5 eurocent?
- Norges Bank: Rundskriv 1/2011, Forskrift om tilbaketrekking av 50-øremynt som gyldig betalingsmiddel, section 2
- New Zealand Government Consumer Protection: Cash and EFTPOS
- Lag (1970:1029) om avrundning av öresbelopp, sections 1 and 2
- Zákon č. 18/1996 Z. z. o cenách, section 3(4), in force from 1 January 2026
- Central Bank (Withdrawal, Redemption and Demonetisation of One Cent Coins) Regulations, 2018, Legal Notice No. 35
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/money/round \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": "1234.5",
"currency": "JPY"
}'
The same call in Python
import os
import requests
payload = {
"amount": "1234.5",
"currency": "JPY",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/money/round",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"amount": "1234.5",
"currency": "JPY",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/money/round", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_money_round at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="money/round" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
Round and split money to the cent in your app
Every share adds up to the total and every cash total follows the country's rule, so the ledger, the receipt and the payout agree.
Free for up to 1,000 payments a month. 50,000 payments a month cost $9.00 on the Starter plan.