Consider the following button element, which executes a computation and displays the result when clicked:

```

```
Create a Web page named number.html that contains the above button. Mathematically speaking, multiplying x * (1/x) should yield 1, regardless of the particular value of x. Click the button and report the value that is displayed in the alert window. If it is not 1, can you explain why not?

```







Number Representation



Number Representation






------------------------
```
The alert window displays: The value is 0.9999999999999999
This happens because of roundoff, as 1/3333333333 cannot be represented exactly.

Computer Science & Information Technology

You might also like to view...

________ prints a document so that the page is taller than it is wide

Fill in the blank(s) with correct word

Computer Science & Information Technology

To make rapid and accurate changes to the appearance of a workbook with very little effort, you can use built-in cell styles

Indicate whether the statement is true or false

Computer Science & Information Technology