How does attaching analog inputs to digital pins actually works?

Thanks for the help but I looked into the data sheets and I can't find the right info. Are you referring to this table?