You modified the round.html page so that it rounded the number to two decimal places instead of 1. This involved multiplying the number by 100 (instead of 10), rounding to the nearest integer, then dividing by 100 (instead of 10). This process can be generalized to any number of decimal places, by using the appropriate power of 10. In order to round a number to N digits, you multiply that number by 10N, round to the nearest integer, then divide by 10N.

Modify your round.html page so that it has an additional text box where the user can specify the number of digits. When the button is clicked, the number in the original text box will be rounded to the specified number of digits and displayed in the page.


```







Number Rounder




Number Rounder



Enter a number:








```

Computer Science & Information Technology

You might also like to view...

Paper output from a printer is known as _____.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

________ is the keyboard shortcut used to copy text or an object

A) [Ctrl] + [C] B) [Ctrl] + [P] C) [Ctrl] + [V] D) [Ctrl] + [X]

Computer Science & Information Technology

Avoid the common mistakes many new presenters make during presentations using PowerPoint, such as ________ from the slides and turning their backs on the audience

a. Speaking too slowly b. Reading from the slides c. Deviating d. None of the above

Computer Science & Information Technology

A function ____________________ is a function that is not fully coded.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology