Sometimes, if a country's currency is overvalued in real terms, and it looks like the current account is going to be in deficit for the foreseeable future, devaluation can make sense.