Under a floating exchange rate the rate is set by supply and demand on the currency market. Under a fixed exchange rate
the central bank holds it at an announced level, buying its own currency with its reserves of foreign currency when the currency is sold, and selling it when it is bought.