new file: Files/flashplayer_32_sa.exe new file: favicon.ico new file: globe.gif new file: imgs/download.png new file: imgs/zuck.jpg new file: index.html new file: other.ico new file: script.js new file: site.webmanifest new file: sitemap.html new file: styles/backround.css new file: styles/border.css new file: styles/fonts/Titillium_Web/OFL.txt new file: styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf new file: styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf new file: styles/fonts/webfontkit-20221027-163353/generator_config.txt new file: styles/fonts/webfontkit-20221027-163353/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-163353/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/stylesheet.css new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-demo.html new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff new file: styles/fonts/webfontkit-20221027-163353/titilliumweb-extralight-webfont.woff2 new file: styles/fonts/webfontkit-20221027-165950/generator_config.txt new file: styles/fonts/webfontkit-20221027-165950/specimen_files/grid_12-825-55-15.css new file: styles/fonts/webfontkit-20221027-165950/specimen_files/specimen_stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/stylesheet.css new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-demo.html new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff new file: styles/fonts/webfontkit-20221027-165950/titilliumweb-bold-webfont.woff2 new file: styles/style.css new file: tools/2048/.gitignore new file: tools/2048/.jshintrc new file: tools/2048/CONTRIBUTING.md new file: tools/2048/LICENSE.txt new file: tools/2048/README.md new file: tools/2048/Rakefile new file: tools/2048/favicon.ico new file: tools/2048/index.html new file: tools/2048/js/animframe_polyfill.js new file: tools/2048/js/application.js new file: tools/2048/js/bind_polyfill.js new file: tools/2048/js/classlist_polyfill.js new file: tools/2048/js/game_manager.js new file: tools/2048/js/grid.js new file: tools/2048/js/html_actuator.js new file: tools/2048/js/keyboard_input_manager.js new file: tools/2048/js/local_storage_manager.js new file: tools/2048/js/tile.js new file: tools/2048/meta/apple-touch-icon.png new file: tools/webretro/cores/neocd_libretro.js new file: tools/webretro/cores/neocd_libretro.wasm new file: tools/webretro/cores/nestopia_libretro.js new file: tools/webretro/cores/nestopia_libretro.wasm new file: tools/webretro/cores/o2em_libretro.js new file: tools/webretro/cores/o2em_libretro.wasm new file: tools/webretro/cores/opera_libretro.js new file: tools/webretro/cores/opera_libretro.wasm
369 lines
15 KiB
HTML
369 lines
15 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
|
|
<!-- Mirrored from www.mathsisfun.com/numbers/convert-base.php by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:35:24 GMT -->
|
|
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<!-- #BeginEditable "doctitle" -->
|
|
<title>Base Conversion Tool</title>
|
|
|
|
<!-- #EndEditable -->
|
|
<meta name="keywords" content="math, maths, mathematics, school, homework, education">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
<meta name="HandheldFriendly" content="true">
|
|
<meta name="referrer" content="always">
|
|
<link rel="preload" href="../images/style/font-champ-bold.ttf" as="font" type="font/ttf" crossorigin>
|
|
<link rel="preload" href="../style4.css" as="style">
|
|
<link rel="preload" href="../main4.js" as="script">
|
|
<link rel="stylesheet" href="../style4.css">
|
|
<script src="../main4.js" defer></script>
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-29771508-1"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', 'UA-29771508-1');
|
|
</script>
|
|
</head>
|
|
|
|
<body id="bodybg">
|
|
|
|
<div id="stt"></div>
|
|
<div id="adTop"></div>
|
|
<header>
|
|
<div id="hdr"></div>
|
|
<div id="tran"></div>
|
|
<div id="adHide"></div>
|
|
<div id="cookOK"></div>
|
|
</header>
|
|
|
|
<div class="mid">
|
|
|
|
<nav>
|
|
<div id="menuWide" class="menu"></div>
|
|
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun"></a></div>
|
|
|
|
<div id="search" role="search"></div>
|
|
<div id="linkto"></div>
|
|
|
|
<div id="menuSlim" class="menu"></div>
|
|
<div id="menuTiny" class="menu"></div>
|
|
</nav>
|
|
|
|
<div id="extra"></div>
|
|
|
|
<article id="content" role="main">
|
|
|
|
<!-- #BeginEditable "Body" -->
|
|
|
|
|
|
<h1 class="center">Base Conversion Tool</h1>
|
|
|
|
<p class="center">Click in either box and type. The conversion is done live.<br>
|
|
Can convert negatives and fractional parts too.</p>
|
|
|
|
|
|
<div class="script" style="height: 360px;">images/convert-base.js</div>
|
|
|
|
<p>Accuracy is about 16 places each side of "."</p>
|
|
<p>To convert <b>between different bases</b>:</p>
|
|
<ul>
|
|
<li>select the name of the base, and type the number in next to it (this gets converted to decimal)</li>
|
|
<li>change the name of the base</li>
|
|
</ul>
|
|
|
|
|
|
<h2>Bases Greater than 10</h2>
|
|
|
|
<p>What happens when you need more than 10 digits?</p>
|
|
|
|
|
|
<h2>Undecimal (Base 11)</h2>
|
|
|
|
<p>Undecimal (Base 11) needs one more digit than Decimal, so "A" is used, like this:</p>
|
|
<table style="border: 0;">
|
|
<tr style="text-align:center;">
|
|
<th>Decimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:22px;">6</td>
|
|
<td style="width:20px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">12</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
<tr style="text-align:center;">
|
|
<th>Undecimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:22px;">6</td>
|
|
<td style="width:20px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;"><b>A</b></td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<h2>Duodecimal (Base 12)</h2>
|
|
|
|
<p>Duodecimal (Base 12) needs two more digits than Decimal, so "A" and "B" are used:</p>
|
|
<table style="border: 0;">
|
|
<tr style="text-align:center;">
|
|
<th>Decimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">12</td>
|
|
<td style="width:21px;">13</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
<tr style="text-align:center;">
|
|
<th>Duodecimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;"><b>A</b></td>
|
|
<td style="width:21px;"><b>B</b></td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
</table>
|
|
<p><i>(Note: some people use a T for 10 and E for 11, or a "2" and "3" rotated half way around for 10 and 11, but we use the same system as the other bases.)</i></p>
|
|
|
|
|
|
<h2>Hexadecimal (Base 16)</h2>
|
|
|
|
<p>Because there are more than 10 digits, hexadecimal is written using letters as well, like this:</p>
|
|
<table style="border: 0;">
|
|
<tr style="text-align:center;">
|
|
<th>Decimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">12</td>
|
|
<td style="width:21px;">13</td>
|
|
<td style="width:21px;">14</td>
|
|
<td style="width:21px;">15</td>
|
|
<td style="width:21px;">16</td>
|
|
<td style="width:21px;">17</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
<tr style="text-align:center;">
|
|
<th>Hexadecimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;"><b>A</b></td>
|
|
<td style="width:21px;"><b>B</b></td>
|
|
<td style="width:21px;"><b>C</b></td>
|
|
<td style="width:21px;"><b>D</b></td>
|
|
<td style="width:21px;"><b>E</b></td>
|
|
<td style="width:21px;"><b>F</b></td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<h2>Vigesimal (Base 20)</h2>
|
|
|
|
<p>With vigesimal, the convention is that <b>I</b> is not used because it looks like <b>1</b>, so <b>J</b>=18 and <b>K</b>=19, as in this table:</p>
|
|
<table style="border: 0;">
|
|
<tr style="text-align:center;">
|
|
<th>Decimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">12</td>
|
|
<td style="width:21px;">13</td>
|
|
<td style="width:21px;">14</td>
|
|
<td style="width:21px;">15</td>
|
|
<td style="width:21px;">16</td>
|
|
<td style="width:21px;">17</td>
|
|
<td style="width:21px;">18</td>
|
|
<td style="width:21px;">19</td>
|
|
<td style="width:21px;">20</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
<tr style="text-align:center;">
|
|
<th>Vigesimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;"><b>A</b></td>
|
|
<td style="width:21px;"><b>B</b></td>
|
|
<td style="width:21px;"><b>C</b></td>
|
|
<td style="width:21px;"><b>D</b></td>
|
|
<td style="width:21px;"><b>E</b></td>
|
|
<td style="width:21px;"><b>F</b></td>
|
|
<td style="width:21px;"><b>G</b></td>
|
|
<td style="width:21px;"><b>H</b></td>
|
|
<td style="width:21px;"><b>J</b></td>
|
|
<td style="width:21px;"><b>K</b></td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<h2>Letters (Base 26)</h2>
|
|
|
|
<p>With "Base 26", you use the letters of the alphabet (not 0 to 9).</p>
|
|
<p>Some people start with A=0, B=1, etc. But it seems more natural to use A=1, B=2, etc, as everyone thinks that A is the first letter, B is the second, and so on.</p>
|
|
<p>So I use the A=1, B=2, convention, and I use "Z" for Zero! Like this:</p>
|
|
<table style="border: 0;">
|
|
<tr style="text-align:center;">
|
|
<th>Decimal:</th>
|
|
<td style="width:21px;">0</td>
|
|
<td style="width:21px;">1</td>
|
|
<td style="width:21px;">2</td>
|
|
<td style="width:21px;">3</td>
|
|
<td style="width:21px;">4</td>
|
|
<td style="width:21px;">5</td>
|
|
<td style="width:21px;">6</td>
|
|
<td style="width:21px;">7</td>
|
|
<td style="width:21px;">8</td>
|
|
<td style="width:21px;">9</td>
|
|
<td style="width:21px;">10</td>
|
|
<td style="width:21px;">11</td>
|
|
<td style="width:21px;">12</td>
|
|
<td style="width:21px;">13</td>
|
|
<td style="width:21px;">14</td>
|
|
<td style="width:21px;">15</td>
|
|
<td style="width:21px;">16</td>
|
|
<td style="width:21px;">17</td>
|
|
<td style="width:21px;">18</td>
|
|
<td style="width:21px;">19</td>
|
|
<td style="width:21px;">20</td>
|
|
<td style="width:21px;">21</td>
|
|
<td style="width:21px;">22</td>
|
|
<td style="width:21px;">23</td>
|
|
<td style="width:21px;">24</td>
|
|
<td style="width:21px;">25</td>
|
|
<td style="width:21px;">26</td>
|
|
<td style="width:21px;">27</td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
<tr style="text-align:center;">
|
|
<th>Base 26:</th>
|
|
<td style="width:21px;"><b>Z</b></td>
|
|
<td style="width:21px;"><b>A</b></td>
|
|
<td style="width:21px;"><b>B</b></td>
|
|
<td style="width:21px;"><b>C</b></td>
|
|
<td style="width:21px;"><b>D</b></td>
|
|
<td style="width:21px;"><b>E</b></td>
|
|
<td style="width:21px;"><b>F</b></td>
|
|
<td style="width:21px;"><b>G</b></td>
|
|
<td style="width:21px;"><b>H</b></td>
|
|
<td style="width:21px;"><b>I</b></td>
|
|
<td style="width:21px;"><b>J</b></td>
|
|
<td style="width:21px;"><b>K</b></td>
|
|
<td style="width:21px;"><b>L</b></td>
|
|
<td style="width:21px;"><b>M</b></td>
|
|
<td style="width:21px;"><b>N</b></td>
|
|
<td style="width:21px;"><b>O</b></td>
|
|
<td style="width:21px;"><b>P</b></td>
|
|
<td style="width:21px;"><b>Q</b></td>
|
|
<td style="width:21px;"><b>R</b></td>
|
|
<td style="width:21px;"><b>S</b></td>
|
|
<td style="width:21px;"><b>T</b></td>
|
|
<td style="width:21px;"><b>U</b></td>
|
|
<td style="width:21px;"><b>V</b></td>
|
|
<td style="width:21px;"><b>W</b></td>
|
|
<td style="width:21px;"><b>X</b></td>
|
|
<td style="width:21px;"><b>Y</b></td>
|
|
<td style="width:21px;"><b>AZ</b></td>
|
|
<td style="width:21px;"><b>AA</b></td>
|
|
<td style="width:21px;">...</td>
|
|
</tr>
|
|
</table>
|
|
<p>It is fun to use Base 26, type your name in, and see what number you are!</p>
|
|
<p>Also, try putting in decimal values after the ".", for example 0.1 produces "BOOO..."</p>
|
|
<p> </p>
|
|
|
|
<div class="related">
|
|
<a href="../base-conversion-method.html">Base Conversion Method</a>
|
|
<a href="../hexadecimals.html">Hexadecimal</a>
|
|
</div>
|
|
<!-- #EndEditable -->
|
|
|
|
</article>
|
|
|
|
<div id="adend" class="centerfull noprint"></div>
|
|
<footer id="footer" class="centerfull noprint"></footer>
|
|
<div id="copyrt">Copyright © 2021 MathsIsFun.com</div>
|
|
|
|
</div>
|
|
</body>
|
|
<!-- #EndTemplate -->
|
|
|
|
<!-- Mirrored from www.mathsisfun.com/numbers/convert-base.php by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:35:24 GMT -->
|
|
</html>
|