Yes, the calculator can handle both whole numbers and decimal numbers, providing precise rounding to the specified number of significant figures.