Classification of abelian numbers