[Tutor] The remainder %
Gates, George
GGates@NaviSite.com
Tue Jun 3 18:53:35 2003
This is a multi-part message in MIME format.
------_=_NextPart_001_01C329CA.C996EDB1
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
The modulus operator (%) divides and returns the remainder. In this
case it divides 14 by 3 resulting in 4 with a remainder of 2. 4*3=3D12,
14-12=3D2, 2 is the result.
=20
--George H. Gates=20
-----Original Message-----
From: Guillaume [mailto:willblake@wanadoo.fr]=20
Sent: Tuesday, June 03, 2003 8:09 AM
To: tutor@python.org
Subject: [Tutor] The remainder %
=20
Hello,
I'm not very good in maths and I don't understand why=20
14 % 3 =3D 2
Could someone explain me this mystery?
Thanks in advance :)
=20
------_=_NextPart_001_01C329CA.C996EDB1
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 5 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle17
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The modulus operator (%) divides =
and
returns the remainder. In this case it divides 14 by 3 resulting =
in 4 with a
remainder of 2. 4*3=3D12, 14-12=3D2, 2 is the =
result.</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<p><font size=3D2 color=3Dnavy face=3D"Times New Roman"><span =
style=3D'font-size:10.0pt;
color:navy'>--George H. Gates </span></font></p>
</div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Guillaume
[mailto:willblake@wanadoo.fr] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, June 03, =
2003 8:09
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> tutor@python.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Tutor] The =
remainder %</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'> </span></font></p>
<div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Arial Narrow"><span
style=3D'font-size:12.0pt;font-family:"Arial =
Narrow"'>Hello,</span></font></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Arial Narrow"><span
style=3D'font-size:12.0pt;font-family:"Arial Narrow"'>I'm not very good =
in maths
and I don't understand why </span></font></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Arial Narrow"><span
style=3D'font-size:12.0pt;font-family:"Arial Narrow"'>14 % 3 =3D =
2</span></font></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Arial Narrow"><span
style=3D'font-size:12.0pt;font-family:"Arial Narrow"'>Could someone =
explain me
this mystery?</span></font></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Arial Narrow"><span
style=3D'font-size:12.0pt;font-family:"Arial Narrow"'>Thanks in advance =
:)</span></font></p>
</div>
<div>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'> </span></font></p>
</div>
</div>
</body>
</html>
------_=_NextPart_001_01C329CA.C996EDB1--