Finding whole and rational numbers