Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76759
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <drsalists@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.261 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.65; '*S*': 0.17; 'cc:addr:python-list': 0.11; 'cc:name:python list': 0.16; 'hexadecimal': 0.16; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'subject:what': 0.31; 'subject:with': 0.35; 'received:google.com': 0.35; 'skip:p 20': 0.39; 'subject:get': 0.81; 'subject:interesting': 0.84; 'subject:you': 0.87; 'subject:results': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qsBMpPMpcMEXjfwK8LdXQZW9T4nXl2u2uYTwLsQ3HCU=; b=fQjGdLnunQe4ITP55kE62TsDadWPnOGCt7CdFS3MLCORDt22eOURt4sMGK9C/5fCBw jVaSgWjJcU1sXwY7PZoa7KB4JI0nRCFGlkWWhKpiCg4goBT9SCAJguEiI2OR4AKuPnvh fq9MQ1xZeb+nJEAlpr18PqhIxcpl/cffKca43EfnbA59Vn7snIjHE13H32+MQeAqJwRw w9mjsSBo0bWVqM3Ymibf+pD8QypQcuK6jM3dl3zIOB6eVFB5aUNvG7g8e09g/7I6HbN1 mfa6z+KsvupBeRHy8NBy7yQEfsBQ2Y2BmgT/MHzwkkunsyn2PMI+61yD8A31hS4NkFpy VLyw== |
| MIME-Version | 1.0 |
| X-Received | by 10.112.242.162 with SMTP id wr2mr1161970lbc.10.1408659332553; Thu, 21 Aug 2014 15:15:32 -0700 (PDT) |
| In-Reply-To | <d0b0b711-e62e-49f3-8456-49275e45cc4f@googlegroups.com> |
| References | <d0b0b711-e62e-49f3-8456-49275e45cc4f@googlegroups.com> |
| Date | Thu, 21 Aug 2014 15:15:32 -0700 |
| Subject | Re: what do you get with 1 divide by 998001, interesting results |
| From | Dan Stromberg <drsalists@gmail.com> |
| To | Everything You Need To Know <eyn2k@outlook.com> |
| Content-Type | text/plain; charset=UTF-8 |
| X-Mailman-Approved-At | Fri, 22 Aug 2014 03:10:44 +0200 |
| Cc | Python List <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.13264.1408669845.18130.python-list@python.org> (permalink) |
| Lines | 7 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1408669845 news.xs4all.nl 2907 [2001:888:2000:d::a6]:55128 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:76759 |
Show key headers only | View raw
Amusing.
It works in hexadecimal too:
numerator = 1
denominator = 0xffe001
shift = int(16 ** 30)
print(hex(int(numerator * shift / denominator)))
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 08:36 -0700
Re: what do you get with 1 divide by 998001, interesting results Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-08-20 18:05 +0200
Re: what do you get with 1 divide by 998001, interesting results Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-21 09:08 +1000
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 18:22 -0700
Re: what do you get with 1 divide by 998001, interesting results Chris Angelico <rosuav@gmail.com> - 2014-08-21 11:41 +1000
Re: what do you get with 1 divide by 998001, interesting results Ben Finney <ben+python@benfinney.id.au> - 2014-08-21 11:35 +1000
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 19:07 -0700
Re: what do you get with 1 divide by 998001, interesting results Ben Finney <ben+python@benfinney.id.au> - 2014-08-21 14:39 +1000
Re: what do you get with 1 divide by 998001, interesting results Rustom Mody <rustompmody@gmail.com> - 2014-08-20 21:49 -0700
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 22:08 -0700
Re: what do you get with 1 divide by 998001, interesting results Ben Finney <ben+python@benfinney.id.au> - 2014-08-21 15:26 +1000
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 22:38 -0700
Re: what do you get with 1 divide by 998001, interesting results Chris Angelico <rosuav@gmail.com> - 2014-08-21 15:49 +1000
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 23:09 -0700
Re: what do you get with 1 divide by 998001, interesting results Chris Angelico <rosuav@gmail.com> - 2014-08-21 16:50 +1000
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 23:52 -0700
Re: what do you get with 1 divide by 998001, interesting results Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-21 09:19 +0100
Re: what do you get with 1 divide by 998001, interesting results Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-21 09:15 +0100
Re: what do you get with 1 divide by 998001, interesting results Ben Finney <ben+python@benfinney.id.au> - 2014-08-21 15:54 +1000
Re: what do you get with 1 divide by 998001, interesting results Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-22 02:50 +1000
Re: what do you get with 1 divide by 998001, interesting results Terry Reedy <tjreedy@udel.edu> - 2014-08-21 16:15 -0400
Re: what do you get with 1 divide by 998001, interesting results Rustom Mody <rustompmody@gmail.com> - 2014-08-21 15:09 -0700
Re: what do you get with 1 divide by 998001, interesting results Ben Finney <ben+python@benfinney.id.au> - 2014-08-22 07:15 +1000
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-21 16:10 -0700
Re: what do you get with 1 divide by 998001, interesting results Joel Goldstick <joel.goldstick@gmail.com> - 2014-08-21 19:28 -0400
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-24 17:04 -0700
Re: what do you get with 1 divide by 998001, interesting results Chris Angelico <rosuav@gmail.com> - 2014-08-25 10:08 +1000
Re: what do you get with 1 divide by 998001, interesting results Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-22 02:27 +0100
Re: what do you get with 1 divide by 998001, interesting results Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-21 22:58 +0100
Re: what do you get with 1 divide by 998001, interesting results Rustom Mody <rustompmody@gmail.com> - 2014-08-20 22:31 -0700
Re: what do you get with 1 divide by 998001, interesting results Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-21 09:09 +0100
Re: what do you get with 1 divide by 998001, interesting results Steven D'Aprano <steve@pearwood.info> - 2014-08-21 02:36 +0000
Re: what do you get with 1 divide by 998001, interesting results Rustom Mody <rustompmody@gmail.com> - 2014-08-20 19:46 -0700
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 20:48 -0700
Re: what do you get with 1 divide by 998001, interesting results Ian Kelly <ian.g.kelly@gmail.com> - 2014-08-20 23:03 -0600
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-20 23:18 -0700
Re: what do you get with 1 divide by 998001, interesting results Ben Finney <ben+python@benfinney.id.au> - 2014-08-21 16:30 +1000
Re: what do you get with 1 divide by 998001, interesting results Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-08-21 10:23 +0200
Re: what do you get with 1 divide by 998001, interesting results Terry Reedy <tjreedy@udel.edu> - 2014-08-21 03:25 -0400
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-21 00:40 -0700
Re: what do you get with 1 divide by 998001, interesting results Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-21 09:24 +0100
Re: what do you get with 1 divide by 998001, interesting results Everything You Need To Know <eyn2k@outlook.com> - 2014-08-21 06:25 -0700
Re: what do you get with 1 divide by 998001, interesting results luofeiyu <elearn2014@gmail.com> - 2014-08-21 21:37 +0800
Re: what do you get with 1 divide by 998001, interesting results Grant Edwards <invalid@invalid.invalid> - 2014-08-21 19:50 +0000
Re: what do you get with 1 divide by 998001, interesting results Rustom Mody <rustompmody@gmail.com> - 2014-08-21 15:21 -0700
Re: what do you get with 1 divide by 998001, interesting results Terry Reedy <tjreedy@udel.edu> - 2014-08-21 16:10 -0400
Re: what do you get with 1 divide by 998001, interesting results Dan Stromberg <drsalists@gmail.com> - 2014-08-21 15:15 -0700
csiph-web