Adding a helper function to format eigenvalues for screen output