Currency & Exchange Rates

On this page

CalcMark supports currency values and conversion between currencies using exchange rates defined in YAML frontmatter.

Currency Conversion #

Convert between currencies using in with exchange rates defined in YAML frontmatter:

---
exchange:
  USD_EUR: 0.92
  EUR_GBP: 0.86
---

price_usd = $100
price_eur = price_usd in EUR

salary = 50000 EUR
salary_gbp = salary in GBP
Results
price_usd = $100→$100.00
price_eur = price_usd in EUR→€92.00
salary = 50000 EUR→€50,000.00
salary_gbp = salary in GBP→£43,000.00

Exchange rates use the format FROM_TO: rate where 1 unit of FROM equals rate units of TO.


Related guide: Business Planning — currency arithmetic, ratios, and financial modeling