Nearest whole number and rational number