The method handles a single number input.