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
272 lines
15 KiB
HTML
272 lines
15 KiB
HTML
<!doctype html>
|
|
<html lang="en"><!-- #BeginTemplate "/Templates/Main.dwt" --><!-- DW6 -->
|
|
|
|
<!-- Mirrored from www.mathsisfun.com/numbers/rounding-methods.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:58:36 GMT -->
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<!-- #BeginEditable "doctitle" -->
|
|
<title>Rounding Methods</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="stylesheet" type="text/css" href="../style3.css">
|
|
<script src="../main3.js"></script>
|
|
</head>
|
|
|
|
<body id="bodybg">
|
|
<div class="bg">
|
|
<div id="stt"></div>
|
|
<header>
|
|
<div id="hdr"></div>
|
|
<div id="logo"><a href="../index.html"><img src="../images/style/logo.svg" alt="Math is Fun"></a></div>
|
|
<div id="gtran">
|
|
<script>document.write(getTrans());</script>
|
|
</div>
|
|
<div id="adTopOuter" class="centerfull noprint">
|
|
<div id="adTop">
|
|
<script>document.write(getAdTop());</script>
|
|
</div>
|
|
</div>
|
|
<div id="adHide">
|
|
<div id="showAds1"><a href="javascript:showAds()">Show Ads</a></div>
|
|
<div id="hideAds1"><a href="javascript:hideAds()">Hide Ads</a><br>
|
|
<a href="../about-ads.html">About Ads</a></div>
|
|
</div>
|
|
</header>
|
|
<nav>
|
|
<div id="menuWide" class="menu">
|
|
<script>document.write(getMenu(0));</script>
|
|
</div>
|
|
<div id="linkto">
|
|
<div id="linktort">
|
|
<script>document.write(getLinks());</script>
|
|
</div>
|
|
</div>
|
|
<div id="search" role="search">
|
|
<script>document.write(getSearch());</script>
|
|
</div>
|
|
<div id="menuSlim" class="menu">
|
|
<script>document.write(getMenu(1));</script>
|
|
</div>
|
|
<div id="menuTiny" class="menu">
|
|
<script>document.write(getMenu(2));</script>
|
|
</div>
|
|
</nav>
|
|
<div id="extra"></div>
|
|
</div>
|
|
<article id="content" role="main"><!-- #BeginEditable "Body" -->
|
|
|
|
<h1 align="center">Rounding Methods</h1>
|
|
<p align="center">There are many ways to round numbers ...<br />
|
|
</p>
|
|
|
|
<h2>Firstly, what is "Rounding" ?</h2>
|
|
<div class="clear"></div>
|
|
<p>Rounding means making a number <b>simpler</b> but keeping its value close to what it was. <b>The result is less accurate, but easier to use. </b><br />
|
|
</p>
|
|
<div class="example">
|
|
<h3>Example: 7.3 rounds to 7</h3>
|
|
<p>Because 7.3 is closer to 7 than to 8</p>
|
|
<p><i>(Note: we round to whole numbers in these examples, but we can <a href="#round-tens">round to tens, tenths</a>, etc)</i></p>
|
|
</div>
|
|
<p>But what about <b>7.5</b>? Is it closer to 7 or closer to 8? </p>
|
|
<p class="center"><img src="images/round-5.gif" width="400" height="74" alt="round 5" /></p>
|
|
<p class="center"><b>7.5</b> is halfway in between, so what should we do?</p>
|
|
<h2>Half Round Up (the common method of rounding)</h2>
|
|
<p>The <b>common method</b> of rounding is to make 0.5 go <b>up</b>, so 7.5 rounds up to 8</p>
|
|
|
|
<p class="center larger">7.5 usually rounds up to 8</p>
|
|
<p>But this is not a law or anything, it is just what people normally agree to do, and we get this:</p>
|
|
<ul>
|
|
<li>7.6 rounds up to 8</li>
|
|
<li>7.5 rounds up to 8</li>
|
|
<li>7.4 rounds down to 7</li>
|
|
</ul>
|
|
<p>Learn more about this method at <a href="../rounding-numbers.html">Rounding Numbers</a>.</p> <h2>Half Round Down</h2>
|
|
<p>But <b> 5 can go down</b> if we want. In that case 7.5 rounds down to 7, and we get this:</p>
|
|
<ul>
|
|
<li>7.6 rounds up to 8</li>
|
|
<li>7.5 rounds down to 7</li>
|
|
<li>7.4 rounds down to 7</li>
|
|
</ul>
|
|
<p>But we should always let people know we are using "Half Round Down".</p>
|
|
<p>Why make 0.5 go down? Maybe there are lots of 0.5's in our numbers and we want to see what rounding down does to our results.</p>
|
|
<p class="center larger">Have a Play ... try different rounding methods on the <a href="rounding-tool.html">Rounding Tool</a>.</p>
|
|
<h2>Negative Numbers</h2>
|
|
<p>But what about <b>-7.5</b> ? </p>
|
|
<ul>
|
|
<li>Does it round to -8 (and is that going "up" or "down" ?), </li>
|
|
<li>Or does it round to -7 ?</li>
|
|
</ul>
|
|
<p class="larger">Help! I am confused!</p>
|
|
<p>In fact the whole world is confused about rounding negative numbers ... some computer programs round -7.5 to -8, others to -7</p>
|
|
<p>But we can agree <b>here</b> that "up" means heading in a positive direction, like on this number line:</p>
|
|
<p class="center"><img src="images/round-up.svg" alt="round up" /></p>
|
|
<h2>Half Round Up (including negative numbers)</h2>
|
|
<p>So we get this:</p>
|
|
<ul>
|
|
<li>7.6 rounds up to 8</li>
|
|
<li>7.5 rounds up to 8</li>
|
|
<li>7.4 rounds down to 7</li>
|
|
<li></li>
|
|
<li>-7.4 rounds up to -7</li>
|
|
<li>-7.5 rounds up to -7</li>
|
|
<li>-7.6 rounds down to -8</li>
|
|
|
|
</ul>
|
|
<h2>Half Round Down (including negative numbers)</h2>
|
|
<p>When we <b>round 0.5 down</b> we get this:</p>
|
|
<ul>
|
|
<li>7.6 rounds up to 8</li>
|
|
<li>7.5 rounds down to 7</li>
|
|
<li>7.4 rounds down to 7</li>
|
|
<li></li>
|
|
<li>-7.4 rounds up to -7</li>
|
|
<li>-7.5 rounds down to -8</li>
|
|
<li>-7.6 rounds down to -8</li>
|
|
</ul>
|
|
<p> </p>
|
|
<h2>"Symmetric" Rounding</h2>
|
|
<p>But maybe you think "7.5 rounds up to 8, so -7.5 should go to -8", which is nice and <a href="../geometry/symmetry.html">symmetrical</a>.</p>
|
|
<p> Well you are in luck because that is<b> rounding towards or away from zero</b>:</p>
|
|
<p class="center"><img src="images/round-away.svg" alt="round away" /></p>
|
|
<h2>Round Half Away From 0</h2>
|
|
<p>For this method, 0.5 rounds the number so it is <b>further away from zero</b>, like this:</p>
|
|
<ul>
|
|
<li>7.6 rounds away to 8</li>
|
|
<li>7.5 rounds away to 8</li>
|
|
<li>7.4 rounds to 7</li>
|
|
<li></li>
|
|
<li>-7.4 rounds to -7</li>
|
|
<li>-7.5 rounds away to -8</li>
|
|
<li>-7.6 rounds away to -8</li>
|
|
</ul>
|
|
<h2>Round Half Towards 0</h2>
|
|
<p>Or we can have 0.5 round the number closer to zero, like this:</p>
|
|
<ul>
|
|
<li>7.6 rounds away to 8</li>
|
|
<li>7.5 rounds to 7</li>
|
|
<li>7.4 rounds to 7</li>
|
|
<li></li>
|
|
<li>-7.4 rounds to -7</li>
|
|
<li>-7.5 rounds to -7</li>
|
|
<li>-7.6 rounds away to -8</li>
|
|
</ul>
|
|
|
|
<h2>But Being Consistent Can Be Bad</h2>
|
|
<p>Choosing any of those methods <b>can</b> be bad, though! </p>
|
|
<p>Imagine you are adding up a long list of numbers. You decide to round each number to make it quicker. If there are a lot of 0.5s they all get rounded up and your answer will have a <b>bias</b>.</p>
|
|
<div class="example">
|
|
<h3>Example: Add these numbers before and after rounding: 5.5, 7.5, 6.5, 9.5</h3>
|
|
<p>Before rounding: <b>5.5 + 7.5 + 6.5 + 9.5 = 29</b></p>
|
|
<p>After rounding: <b>6 + 8 + 7 + 10 = 31</b></p>
|
|
<p>The calculation was a lot easier, but the answer drifted <b>up</b> a lot!</p>
|
|
</div>
|
|
<p>How can we stop the rounding being all one direction? </p>
|
|
<p>We can decide to round <b>towards even (or odd) numbers</b>, or we can just choose <b>randomly</b>.</p>
|
|
<h2>Round to Even (Banker's Rounding)</h2>
|
|
<p>We round 0.5 to the nearest <b>even</b> digit</p>
|
|
<div class="example">
|
|
<p>Example:</p>
|
|
<p>7.5 rounds <b>up</b> to <b>8</b> (because 8 is an even number)</p>
|
|
<p>but 6.5 rounds <b>down</b> to <b>6</b> (because 6 is an even number) </p>
|
|
</div>
|
|
<p>Other numbers (not ending in 0.5) round to nearest as usual, so: </p>
|
|
<ul>
|
|
<li>7.6 rounds up to 8</li>
|
|
<li>7.5 rounds <b>up</b> to <b>8</b> (because 8 is an even number)</li>
|
|
<li>7.4 rounds down to 7</li>
|
|
<li>6.6 rounds up to 7</li>
|
|
<li>6.5 rounds <b>down</b> to <b>6</b> (because 6 is an even number) </li>
|
|
<li>6.4 rounds down to 6</li>
|
|
<li>etc </li>
|
|
</ul>
|
|
<h2>Round to Odd</h2>
|
|
<p>Just like "Round To Even", but 0.5 heads towards odd numbers</p>
|
|
<div class="example">
|
|
<p>Example:</p>
|
|
<p>7.5 rounds down to<b> 7</b> (because 7 is an odd number)</p>
|
|
<p>but 6.5 rounds <b>up</b> to <b>7</b> (because 7 is an odd number) </p>
|
|
</div>
|
|
<h2>Round Randomly</h2>
|
|
<p>We could also choose to round 0.5 up or down randomly, but how? By tossing a coin? Or a computer function? </p>
|
|
<p>With a large list of numbers this can give good results, but also gives a different answer each time (unless we use a fixed list of random choices).</p>
|
|
<h2>Floor and Ceiling</h2>
|
|
<p>There are two other methods that don't even consider 0.5. They are called <a href="../sets/function-floor-ceiling.html">Floor and Ceiling</a>.</p>
|
|
<p>Floor gives us the <b>nearest integer down</b> (and ceiling goes up).</p>
|
|
<div class="example">
|
|
<h3>Example: What is the floor and ceiling of 2.31?</h3>
|
|
<p align="center"><img src="../sets/images/function-floor-ceiling.svg" alt="Floor and Ceiling function" /></p>
|
|
<p align="center" class="larger">The Floor of 2.31 is <b>2</b> <br />
|
|
The Ceiling of 2.31 is <b>3</b></p>
|
|
</div>
|
|
<h2>Floor</h2>
|
|
<p>Using "floor", all digits go down, no matter what the dropped digit is:</p>
|
|
<div class="example">
|
|
<h3>Example: 7.8 goes down to 7</h3>
|
|
<p>so does 7.2, 7.5, 7.9, etc.</p>
|
|
<p>And 7 goes to 7, too.</p>
|
|
</div>
|
|
<h2>Ceiling</h2>
|
|
<p>And "ceiling" goes up:</p>
|
|
<div class="example">
|
|
<h3>Example: 7.1 goes up to 8</h3>
|
|
<p>so does 7.2, 7.5, 7.8, etc.</p>
|
|
<p>But <b>7 stays at 7</b>.</p>
|
|
</div>
|
|
<p> </p>
|
|
<h2>Summary </h2>
|
|
<table align="center">
|
|
<tr>
|
|
<th width="60">Number</th> <th width="60" align="right">Half<br />
|
|
Up</th> <th width="60" align="right">Half<br />
|
|
Down</th> <th width="60" align="right">Half<br />Away 0</th> <th width="60" align="right">Half<br />To 0</th> <th width="60" align="right">Half<br />
|
|
Even</th> <th width="60" align="right">Half<br />
|
|
Odd</th> <th width="60" align="right">Floor</th> <th width="60" align="right">Ceiling</th>
|
|
</tr><tr><td> 8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td>
|
|
</tr><tr><td> 7.6</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">8</td> <td width="50" align="right">7</td> <td width="50" align="right">8</td>
|
|
</tr><tr><td> 7.5</td> <td width="50" align="right">8</td> <td width="50" align="right">7</td> <td width="50" align="right">8</td> <td width="50" align="right">7</td> <td width="50" align="right">8</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">8</td>
|
|
</tr><tr><td> 7.4</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">8</td>
|
|
</tr><tr>
|
|
<td> 7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td> <td width="50" align="right">7</td>
|
|
</tr><tr><td>-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td>
|
|
</tr><tr><td>-7.4</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-7</td> <td width="50" align="right">-8</td> <td width="50" align="right">-7</td>
|
|
</tr><tr><td>-7.5</td> <td width="50" align="right">-7</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-7</td> <td width="50" align="right">-8</td> <td width="50" align="right">-7</td> <td width="50" align="right">-8</td> <td width="50" align="right">-7</td>
|
|
</tr><tr><td>-7.6</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-7</td>
|
|
</tr><tr><td>-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td> <td width="50" align="right">-8</td>
|
|
|
|
|
|
</tr></table>
|
|
<p> </p>
|
|
<h2><a id="round-tens"></a>Rounding to Tens, Tenths, Whatever ...</h2>
|
|
<p>In our examples we rounded to whole numbers, but you can round to tens, or tenths, etc:</p>
|
|
<div class="example">
|
|
<h3>Example: "Half Round Up" to <b>tens</b> (nearest 10):</h3>
|
|
<p>25 rounds up to 30</p>
|
|
<p>24.97 rounds down to 20</p>
|
|
</div>
|
|
<div class="example">
|
|
<h3>Example: "Half Round Up" to <b>hundredths</b> (nearest 1/100):</h3>
|
|
<p>0.5168 rounds up to 0.52</p>
|
|
<p>1.41119 rounds down to 1.41</p>
|
|
</div>
|
|
<p> </p>
|
|
<div class="related"><a href="../rounding-numbers.html">Rounding Numbers</a> <a href="rounding-tool.html">Rounding Tool</a> <a href="index.html">Numbers Index</a></div>
|
|
<!-- #EndEditable --></article>
|
|
<div id="adend" class="centerfull noprint">
|
|
<script>document.write(getAdEnd());</script>
|
|
</div>
|
|
<footer id="footer" class="centerfull noprint">
|
|
<script>document.write(getFooter());</script>
|
|
</footer>
|
|
<div id="copyrt">
|
|
Copyright © 2019 MathsIsFun.com
|
|
</div>
|
|
<script>document.write(getBodyEnd());</script>
|
|
</body>
|
|
<!-- #EndTemplate -->
|
|
<!-- Mirrored from www.mathsisfun.com/numbers/rounding-methods.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 29 Oct 2022 00:58:37 GMT -->
|
|
</html>
|