Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65994

Re: Simple % question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <swdunning@cox.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.041
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; 'division,': 0.16; 'means.': 0.16; 'remainder': 0.16; 'simple.': 0.16; 'wrote:': 0.18; 'received:10.0.1': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'looks': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'work.': 0.31; 'another': 0.32; 'quite': 0.32; 'actual': 0.34; 'in.': 0.36; 'subject:Simple': 0.36; 'received:10.0': 0.36; 'received:10': 0.37; 'pm,': 0.38; 'expect': 0.39; 'header:Message-Id:1': 0.63; 'real': 0.63; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65; '2014,': 0.84
X-CT-Class Clean
X-CT-Score 0.00
X-CT-RefID str=0001.0A020206.52FAEAD3.0057,ss=1,re=0.000,fgs=0
X-CT-Spam 0
X-Authority-Analysis v=2.0 cv=C/M3P3z+ c=1 sm=1 a=MB85R812cvcrhCHz/P2OVA==:17 a=G8Uczd0VNMoA:10 a=N659UExz7-8A:10 a=kviXuzpPAAAA:8 a=yYlZIzagzJ4A:10 a=pGLkceISAAAA:8 a=UpeFz8aWgR3whyn2854A:9 a=pILNOxqGKmIA:10 a=MSl-tDqOz04A:10 a=zptRzSfYiiYA:10 a=1nwG22am9GYA:10 a=MB85R812cvcrhCHz/P2OVA==:117
X-CM-Score 0.00
Authentication-Results cox.net; auth=pass (PLAIN) smtp.auth=swdunning@cox.net
Content-Type text/plain; charset=windows-1252
Mime-Version 1.0 (Mac OS X Mail 7.1 \(1827\))
Subject Re: Simple % question
From Scott W Dunning <swdunning@cox.net>
In-Reply-To <RDgz1n0163bjUJS01Dh2pq>
Date Tue, 11 Feb 2014 20:30:23 -0700
Content-Transfer-Encoding quoted-printable
References <63EBCBF1-6C1B-4B8B-9D4A-0567CBDA978A@cox.net> <RDgz1n0163bjUJS01Dh2pq>
To Chris Angelico <rosuav@gmail.com>
X-Mailer Apple Mail (2.1827)
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6726.1392178841.18130.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392178841 news.xs4all.nl 2947 [2001:888:2000:d::a6]:50309
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65994

Show key headers only | View raw


On Feb 11, 2014, at 6:36 PM, Chris Angelico <rosuav@gmail.com> wrote:
> 
> The real question is: What do you expect that symbol to mean?
> 
> Its actual meaning is quite simple. In long division, dividing one
> number by another looks like this:

Yeah I understand what the % means.  It just confused me that 1%10 was 1.  In my thought process it just didn’t work.  1/10= .1 and I just didn’t see where the remainder of 1 came in.  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Simple % question Scott W Dunning <swdunning@cox.net> - 2014-02-11 20:30 -0700

csiph-web