Dollar edges up, sterling slides on inflation surprise