As we now see it, a floating exchange rate plays two key roles. In the first place, in the long run a floating currency allows the central bank to pursue a national inflation target, regardless of the behaviour of foreign inflation.
In the second place, variations in the currency allow the real exchange rate, and hence the economy, to adjust more smoothly to international shocks to relative prices.