Skip to content

Currency conversion and live exchange rates

Convert money in Zlv with symbols like $ and € or ISO codes, mix currencies, and learn how desktop rates refresh, cache offline and can be pinned.

Money is a unit in Zlv. Put a symbol before an amount or a currency code after it, and convert with in or to.

Writing amounts

Use $, €, £ or ¥ before a number, or an ISO code after it.

Live example
Edit the lines and press Run. Evaluated in your browser.

Evaluating…

Converting currencies

Live example
Edit the lines and press Run. Evaluated in your browser.

Evaluating…

The desktop engine also converts amounts written with a symbol, and amounts stored in variables:

Desktop example
Uses the native Rust engine: copy it into Zlv Desktop to see results.

Results appear next to each line in Zlv Desktop. Download it free.

Mixing currencies

In the desktop app you can add amounts in different currencies. Zlv converts them with the current rates before adding.

Desktop example
Uses the native Rust engine: copy it into Zlv Desktop to see results.

Results appear next to each line in Zlv Desktop. Download it free.

Supported currencies

The built-in table covers USD, EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR, BRL, MAD, AED, TRY, BTC and ETH. Accepted symbols and words include $ and dollars (US dollar), € and euros, £, ¥ and yen, and ₹ and rupees. The web app's lighter TypeScript engine supports a smaller set: USD, EUR, GBP, JPY, CAD, AUD, CHF, BTC and ETH.

How rates are updated in the desktop app

  1. At start-up, Zlv loads the last rates it saved, so conversions work immediately and offline.
  2. In the background, it downloads fresh rates from a public currency-rate feed, then repeats every 60 minutes.
  3. Each successful download is saved to currency_rates.json in your Zlv data folder for the next launch.
  4. If you are offline, Zlv silently keeps using the cached rates, or the built-in table if it has never been online.

The status bar shows whether rates are live or cached, and when they were last updated. To refresh right away, click the refresh control there or press Ctrl+Shift+R.

Pinning your own rates

In Settings > Currency & FX, use Offline exchange rate overrides to pin a rate, for example 1 USD = 10.0 MAD. A pinned rate always takes precedence over downloaded rates, which is useful for budgeting with a fixed planning rate. The same tab holds the Automatic exchange rate synchronization option.

Rates in the web app

The web app uses built-in rates. They are fine for trying things out but are not live market rates.

All guides