Re: New // operator
by Eric Sloane other posts by this author
Apr 30 2002 12:55PM messages near this date
view in the new Beta List Site
Re: New // operator
|
RE: New // operator
--------------Boundary-00=_V8TDH890000000000000
Content-Type: Text/Plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Try that with 2 kids with 5 lollies!=0D
=0D
-------Original Message-------=0D
=0D
From: Syver Enstad=0D
Date: Tuesday, April 30, 2002 22:48:20=0D
To: Matthew Sherborne=0D
Cc: activepython@listserv.ActiveState.com=0D
Subject: Re: New // operator=0D
=0D
"Matthew Sherborne" <miracle@[...].nz> writes:=0D
=0D
> So I now realize that it is not "Integer Division", it is "Division=0D
> with the=0D
> result rounded down".=0D
=0D
I think you want this instead:=0D
=0D
round(5/2)=0D
=0D
By the way whats wrong with 5/2 =3D 2 ?=0D
You have five tennisballs, split them on two persons. Surely they can't=0D
have more than two tennisballs each.=0D
=0D
=0D
=0D
=0D
-- =0D
=0D
Vennlig hilsen =0D
=0D
Syver Enstad=0D
=0D
=0D
_______________________________________________=0D
ActivePython mailing list=0D
ActivePython@listserv.ActiveState.com=0D
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs=0D
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePyt=
hon=0D
=0D
=2E
--------------Boundary-00=_V8TDH890000000000000
Content-Type: Text/HTML;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-885=
9-1"> <html>
<head>
<meta name=3D"GENERATOR" content=3D"IncrediMail 1.0"> =0D
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID> FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER> </X-FVER>
<X-CNT> ;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
=0A</head>
<BODY background=3D"" bgColor=3D#ffffff style=3D"BACKGROUND-POSITION: 0px=
0px; FONT-SIZE: 10pt; MARGIN: 1px; FONT-FAMILY: Arial" scroll=3Dyes ORGY=
POS=3D"0" X-FVER=3D"2.0">
<TABLE border=3D0 cellPadding=3D0 cellSpacing=3D0 id=3DINCREDIMAINTABLE w=
idth=3D"95%">
<TR>
<TD id=3DINCREDITEXTREGION width=3D"100%" style=3D"PADDING-RIGHT: 7px; PA=
DDING-LEFT: 7px; FONT-SIZE: 10pt; FONT-FAMILY: Arial"=20
>
<DIV> Try that with 2 kids with 5 lollies!</DIV>
<DIV> </DIV>
<DIV id=3DIncrediOriginalMessage> <I>-------Original Message-------<=
/I> </DIV>
<DIV> </DIV>
<DIV id=3Dreceivestrings>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i> <B>From:</B></I> <A=20
href=3D"mailto:syver-en@online.no"> Syver Enstad</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i> <B>Date:</B></I> Tuesda=
y, April=20
30, 2002 22:48:20</DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i> <B>To:</B></I> <A=20
href=3D"mailto:miracle@paradise.net.nz"> Matthew Sherborne</A></DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i> <B>Cc:</B></I> <A=20
href=3D"mailto:activepython@listserv.ActiveState.com"> activepython@=
listserv.ActiveState.com</A> </DIV>
<DIV dir=3Dltr style=3D"FONT-SIZE: 11pt" <i> <B>Subject:</B></I> Re:=
New //=20
operator</DIV> </DIV>
<DIV> </DIV>"Matthew Sherborne" <<A=20
href=3D"mailto:miracle@paradise.net.nz"> miracle@[...].nz</A>=
>=20
writes:<BR> <BR>> So I now realize that it is not "Integer Divisi=
on", it=20
is "Division<BR> > with the<BR>> result rounded down".<BR><BR>=
I think=20
you want this instead:<BR> <BR>round(5/2)<BR><BR>By the way whats wr=
ong=20
with 5/2 =3D 2 ?<BR> You have five tennisballs, split them on two pe=
rsons.=20
Surely they can't<BR> have more than two tennisballs=20
each.<BR> <BR><BR> <BR><BR>-- <BR><BR>Vennlig hilsen <BR><BR>Sy=
ver=20
Enstad<BR> <BR><BR>_______________________________________________<B=
R> ActivePython=20
mailing list<BR> <A=20
href=3D"mailto:ActivePython@listserv.ActiveState.com"> ActivePython@=
listserv.ActiveState.com</A> <BR>To=20
unsubscribe: <A=20
href=3D"http://listserv.ActiveState.com/mailman/mysubs"> http://list=
serv.ActiveState.com/mailman/mysubs</A> <BR>Other=20
options: <A=20
href=3D"http://listserv.ActiveState.com/mailman/listinfo/ActivePyth=
on"> http://listserv.ActiveState.com/mailman/listinfo/ActivePython</A><BR>=
<BR> .</TD>
</TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
=09<TABLE cellPadding=3D0 cellSpacing=3D0 width=3D"100%">
=09<TR>
=09<TD width=3D"100%"> </TD>
=09<TD align=3Dmiddle id=3DINCREDISOUND vAlign=3Dbottom> </TD>
=09<TD align=3Dmiddle id=3DINCREDIANIM vAlign=3Dbottom> </TD>
=09</TR>
=09</TABLE>
</TD>
</TR>
</TABLE> <SPAN=20
id=3DIncrediStamp> <SPAN dir=3Dltr><FONT face=3D"Arial, Helvetica, sans-se=
rif"=20
size=3D2> ____________________________________________________<BR><FONT=20
face=3D"Comic Sans MS" size=3D2> <A=20
href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&lang=3D9"> <I=
MG alt=3D""=20
hspace=3D0 src=3D"cid:68CDAA1E-C4DC-4CA3-90AB-CC792E367CE3" align=3Dbasel=
ine=20
border=3D0> </A> <I>IncrediMail</I> - <B>Email has finally evolved</=
B> -=20
</FONT> <A href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&la=
ng=3D9"> <FONT=20
face=3D"Times New Roman" size=3D3> <B><U>Click=20
Here</U> </B></FONT></A></SPAN></SPAN></FONT>
</BODY>
</html>
--------------Boundary-00=_V8TDH890000000000000--
Attachments:
unknown1
Thread:
Matthew Sherborne
Syver Enstad
Eric Sloane
Kari Hoijarvi
David Ascher
Jeff Shannon
David Ascher
|