In membrane potential determination of a cell, the Goldman Hodgkin Katz equation says the contribution of an ion to diffusion potential is dependent on its membrane permeability.
So in case an ion, one that has a zero permeability, is present outside the cell, using the equation , one will get...