Apple Version System

How does Apple format their version system. I know for marketing purposes software will say something like "1.0.5" but how do they do it for internal builds such as beta software? I know the first number is for major updates, second for minor updates, and third for bug fixes.