-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 1.3 KB
/
index.html
File metadata and controls
26 lines (26 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<title>Number Systems Programming</title>
<head>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/part1.js"></script>
<script type="text/javascript" src="js/part2.js"></script>
<script type="text/javascript" src="js/part3.js"></script>
<head>
<body>
<table>
<tr><th></th></tr>
<tr><td>1) Unsigned int:<input value="255" type="text" id="1_UnsignedInt" length="30"></input> in base
<input value="10" id="1_UnsignedIntBaseToConvertFrom" length="10" type="text"></input> convert to base:
<input value="2" id="1_UnsignedIntBaseToConvertTo" length="10" type="text"></input>
<button onClick="ConversionPart1()" id="1_ConvertUnsignedIntToBase">Convert</button>
</td></tr>
<tr><td>2) Signed Int:<input value="5934493" type="text" id="2_SignedInt" length="30"></input>
<button onClick="ConversionPart2()" id="2_ConvertTo32BitMagSignedAndTwosComplementRepresentation">Convert</button>
</td></tr>
<tr><td>3) Float:<input value="3434000" type="text" id="3_Float" length="30"></input>
<button onClick="ConversionPart3()" id="3_ConvertToItsBase2ScientificNotation">Convert</button>
</td></tr>
</table>
<div id="ConversionOutput" width="100" height="80"></div>
</body>
</html>