63 lines
2.0 KiB
HTML
63 lines
2.0 KiB
HTML
<!-- saved from url=(0014)about:internet -->
|
|
<html>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9" />
|
|
<head>
|
|
<title>Scientific Calculator: Integer and fractional part</title>
|
|
<link href="style.css" rel="stylesheet" type="text/css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Scientific Calculator: Integer and fractional part</h1>
|
|
|
|
<div class="section">
|
|
<h2>Content</h2>
|
|
<ul>
|
|
<li><a href="#int">Integer part</a></li>
|
|
<li><a href="#frac">Fractional part</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="section">
|
|
<a name="int"></a>
|
|
<h2>Integer part</h2>
|
|
|
|
<p>In mathematics, the <strong>floor</strong> (also known as the <em>integer part</em>) of a number <em>n</em> is the biggest integer number that is smaller than <em>n</em>.</p>
|
|
|
|
<p>The <strong>ceiling</strong> of a number <em>n</em> is the smallest integer number that is greater than <em>n</em>.</p>
|
|
|
|
<br />
|
|
<h3>Notation:</h3>
|
|
<p>The floor (integer part) of a number <em>n</em>: [n] = ⌊n⌋</p>
|
|
|
|
<p>The ceiling: ⌈n⌉</p>
|
|
|
|
<br />
|
|
<h3>Examples:</h3><br />
|
|
<img class="maths" src="img/calc-int-eq0.gif" /> <br />
|
|
<img class="maths" src="img/calc-int-eq1.gif" /> <br /> <br />
|
|
|
|
</div>
|
|
|
|
<div class="section">
|
|
<a name="frac"></a>
|
|
<h2>Fractional part</h2>
|
|
|
|
<p>In mathematics, any real number can be written as <em>n</em> + <em>r</em>, where <em>n</em> is an integer, and <em>r</em> (the fractional part) is a nonnegative real number smaller than 1.</p>
|
|
|
|
<p>The fractional part of a number <em>n</em> can be written as the difference between <em>n</em> and its integer part (floor):</p>
|
|
<img class="maths" src="img/calc-int-eq2.gif" />
|
|
|
|
<br />
|
|
<h3>Examples:</h3><br />
|
|
<img class="maths" src="img/calc-int-eq3.gif" /> <br />
|
|
<img class="maths" src="img/calc-int-eq4.gif" /> <br /> <br />
|
|
|
|
</div>
|
|
|
|
<div class="footer">
|
|
Software created by Chibici Tiberiu.
|
|
Contact: <a href="mailto:chibicitiberiu@gmail.com">chibicitiberiu@gmail.com</a>
|
|
</div>
|
|
</body>
|
|
</html> |