Convert QQ to p-adic