Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93396
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Paul Rubin <no.email@nospam.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: "normalizing" a value |
| Date | Wed, 01 Jul 2015 17:36:21 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 10 |
| Message-ID | <87a8vfqttm.fsf@nightsong.com> (permalink) |
| References | <fd370a7b-ea6a-48e5-90f4-9d86b89a745e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mx02.eternal-september.org; posting-host="38b554b2114f997ed08ebb809b0b9924"; logging-data="17059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Wv66mZtiV+WKiYmfrKefs" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:02VBw8ZGyMTbRu3hl0600Mh7LSM= sha1:1dn5EMj5g5W1TqPmp6f5vt5UYWE= |
| Xref | csiph.com comp.lang.python:93396 |
Show key headers only | View raw
bvdp <bob@mellowood.ca> writes: > while x < 0: x += 12 > while x >= 12: x -= 12 > Okay, that works. Just wondering if there is an easier (or faster) way > to accomplish this. x = x % 12 should be the same as the above. But are you sure that's really what you want?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
"normalizing" a value bvdp <bob@mellowood.ca> - 2015-07-01 17:12 -0700
Re: "normalizing" a value MRAB <python@mrabarnett.plus.com> - 2015-07-02 01:30 +0100
Re: "normalizing" a value Paul Rubin <no.email@nospam.invalid> - 2015-07-01 17:36 -0700
Re: "normalizing" a value Denis McMahon <denismfmcmahon@gmail.com> - 2015-07-02 01:06 +0000
Re: "normalizing" a value random832@fastmail.us - 2015-07-01 21:27 -0400
Re: "normalizing" a value bvdp <bob@mellowood.ca> - 2015-07-01 18:49 -0700
Re: "normalizing" a value random832@fastmail.us - 2015-07-01 22:23 -0400
Re: "normalizing" a value bvdp <bob@mellowood.ca> - 2015-07-01 19:41 -0700
Re: "normalizing" a value Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-07-01 23:36 -0400
Re: "normalizing" a value bvdp <bob@mellowood.ca> - 2015-07-02 10:03 -0700
Re: "normalizing" a value Steven D'Aprano <steve@pearwood.info> - 2015-07-02 12:15 +1000
Re: "normalizing" a value bvdp <bob@mellowood.ca> - 2015-07-01 19:42 -0700
Re: "normalizing" a value Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-02 05:41 +0100
Re: "normalizing" a value Skip Montanaro <skip.montanaro@gmail.com> - 2015-07-02 10:05 -0500
csiph-web