Enter the round.html text into a new Web page, then load the page in the browser to verify that it behaves as described.
Modify the page so that instead of rounding the number to one decimal place, it rounds to two decimal places. For example, the number 3.14159 would be rounded down to 3.14, whereas the number 5.986 would be rounded up to 5.99.
```
Number Rounder
Enter a number:
onclick="number=parseFloat(document.getElementById('numberBox').value); rounded=Math.round(number*100)/100; document.getElementById('outputDiv').innerHTML=
number + ' rounded to two decimal places is ' + rounded;">
```
You might also like to view...
Write a fragment of code that will read words from the keyboard until the word done is entered. For each word except done, report whether its first character is equal to its last character. For the required loop, use a
a. while statement b. do-while statement
To remove an animation effect, click on the object that has been animated and press Delete one time
Indicate whether the statement is true or false
Functions can be created by using the Function Arguments dialog box or by typing the function in the cell
Indicate whether the statement is true or false
Answer the following statement(s) true (T) or false (F)
1. Web conferencing is possible using a Web-based application that requires attendees to enter an online address to join the conference 2. Wiki allows users to determine the relevancy of content rather than depending on a central document control group. 3. United communications (UC) vendors can operate in the cloud. 4. Instant messaging (IM) is more formal than email. 5.Executives write corporate blogs with the goal of improving a firm’s public image and promoting its products and services.