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
Enter a number:
```
Computer Science & Information Technology
You might also like to view...
Dead processes in the process table are called_________ .
a) ghosts. b) vampires. c) zombies. d) None of the above.
Computer Science & Information Technology
Based on the information below, which of the following sets the tenth element of the array to 20643?Declare Numeric custNumber[10]
A. custNumber[10] = 20643 B. custNumber[9] = 20643 C. custNumber[8] = 20643 D. custNumber[7] = 20643
Computer Science & Information Technology