Historically, one has simply done a floor()
after any calculations, to make sure all coordinates, heights and widths align properly to the pixel boundary.
However, this clearly won't work anymore on the retina display, because 0.5 point is now perfectly valid.
How should coders now code pixel perfect things to make their code properly support both standard and retina displays?