-
Notifications
You must be signed in to change notification settings - Fork 3
/
ieee754.html
32 lines (28 loc) · 1.13 KB
/
ieee754.html
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
27
28
29
30
31
32
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>IEEE 754</title>
<link rel="stylesheet" href="ieee754.css">
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="big.min.js"></script>
<script src="ieee754.js"></script>
</head>
<body>
<h1>IEEE 754 Decoder</h1>
<table id="decoder" border="0">
<tr><td>Hexadecimal<td><input id="hex" type="text" size="24" maxlength="16">
<tr><td>Binary<td><span id="sign"></span><span id="exp"></span><span id="mantissa"></span>
<tr><td>Exact Value<td><div id="description"></div>
<tr><td>Printed Decimal Value<br>(may be approximate)<td><div id="decimal"></div>
<tr><td>Exact Decimal Value<td><div id="exact-decoded-decimal"></div>
</table>
<h1>IEEE 754 Encoder</h1>
<table id="encoder" border="0">
<tr><td>Decimal Value<td><input id="dec" type="text" size="24" maxlength="160">
<tr><td>32-bit Hex<td><div id="32hex"></div>
<tr><td>64-bit Hex<td><div id="64hex"></div>
<tr><td>Printed Decimal Value<br>(may be approximate)<td><div id="printed"></div>
</table>
</body>
</html>