Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8502
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <SRS0=fmaj=ZQ=ieee.org=davea@srs.perfora.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.034 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'numerical': 0.05; 'computed': 0.07; '>>>>': 0.09; 'curious.': 0.09; 'binary': 0.13; 'wrote:': 0.15; '10.0': 0.16; 'instances.': 0.16; 'zero,': 0.16; 'algorithm': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; 'this:': 0.16; 'cc:no real name:2**0': 0.22; 'header:In-Reply- To:1': 0.22; "i'm": 0.27; '(you': 0.28; 'cc:addr:python.org': 0.30; 'objects.': 0.30; 'precision': 0.30; 'sun,': 0.30; 'print': 0.32; 'asking': 0.33; 'header:User-Agent:1': 0.34; 'instead': 0.34; 'there': 0.34; 'numbers.': 0.35; 'machine': 0.35; 'cc:2**1': 0.37; 'response': 0.37; 'received:192': 0.38; 'subject:: ': 0.38; 'received:192.168.1': 0.39; 'give': 0.60; 'your': 0.61; 'designed': 0.63; '26,': 0.67; 'jun': 0.67; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'concept': 0.73; 'reply,': 0.73; 'analysis': 0.76; '02:59': 0.84 |
| Date | Mon, 27 Jun 2011 08:04:10 -0400 |
| From | Dave Angel <davea@ieee.org> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 |
| MIME-Version | 1.0 |
| To | Lalitha Prasad K <lalitha.prasad@faithinfotech.in> |
| Subject | Re: Significant figures calculation |
| References | <10b8388e-76fc-4a93-aeff-676cdb3d1d12@5g2000yqb.googlegroups.com> <4e04f793$0$29975$c3e8da3$5496439d@news.astraweb.com> <mailman.386.1308949143.1164.python-list@python.org> <iu5bgk01v0@news2.newsguy.com> <02a78be2-2c11-4068-81a3-cd8744e8eaf2@y30g2000vbu.googlegroups.com> <BANLkTi=GXp+k2XEk9mdhYwu1523Y0DAutA@mail.gmail.com> |
| In-Reply-To | <BANLkTi=GXp+k2XEk9mdhYwu1523Y0DAutA@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:ng7l/T3rQJbY7T9guEiRisOtnZfOH1PJ6X4dhOAiXDk iT0RMpHANV9xB+nnAenHXEASRU0y97k+vSrYv0NQejWIoY3mlk VZLuxmfTu7DaeOCRamvpSAzAyLabKNMq205FTnPBQBRVNxWmSW 93ZMtg7Df5qigCBBh8V19wmPlnpGAoHrSjJZaE4uXAPyaf9B36 0nLwf4U6UJvDN7yefwZwQ== |
| Cc | python-list@python.org, Harold <dadapapa@googlemail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | davea@ieee.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.445.1309176278.1164.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1309176279 news.xs4all.nl 4359 [::ffff:82.94.164.166]:33087 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8502 |
Show key headers only | View raw
(You top-posted your reply, instead of writing your response following the part you were quoting) On 01/-10/-28163 02:59 PM, Lalitha Prasad K wrote: > In numerical analysis there is this concept of machine zero, which is > computed like this: > > e=1.0 > while 1.0+e> 1.0: > e=e/2.0 > print e > > The number e will give you the precision of floating point numbers. > > Lalitha Prasad > That particular algorithm is designed for binary floating point. The OP was asking about Decimal instances. So you'd want to divide by 10.0 each time. And of course you'd want to do it with Decimal objects. > On Sun, Jun 26, 2011 at 9:05 PM, Harold<dadapapa@googlemail.com> wrote: > >>>> I'm curious. Is there a way to get the number of significant digits >>>> for a particular Decimal instance? DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Significant figures calculation Harold <dadapapa@googlemail.com> - 2011-06-24 13:05 -0700
Re: Significant figures calculation Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-24 20:46 +0000
Re: Significant figures calculation Jerry Hill <malaclypse2@gmail.com> - 2011-06-24 16:58 -0400
Re: Significant figures calculation steve+comp.lang.python@pearwood.info - 2011-06-25 10:31 +1000
Re: Significant figures calculation Chris Torek <nospam@torek.net> - 2011-06-25 19:04 +0000
Re: Significant figures calculation Harold <dadapapa@googlemail.com> - 2011-06-26 08:35 -0700
Re: Significant figures calculation Dave Angel <davea@ieee.org> - 2011-06-27 08:04 -0400
Re: Significant figures calculation Harold <dadapapa@googlemail.com> - 2011-06-27 06:40 -0700
Re: Significant figures calculation Ethan Furman <ethan@stoneleaf.us> - 2011-06-27 13:53 -0700
Re: Significant figures calculation Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-28 12:56 +1000
Re: Significant figures calculation Chris Angelico <rosuav@gmail.com> - 2011-06-28 13:16 +1000
Re: Significant figures calculation Erik Max Francis <max@alcyone.com> - 2011-06-27 20:45 -0700
Re: Significant figures calculation Mel <mwilson@the-wire.com> - 2011-06-28 07:47 -0400
Re: Significant figures calculation Chris Angelico <rosuav@gmail.com> - 2011-06-28 21:57 +1000
Re: Significant figures calculation Erik Max Francis <max@alcyone.com> - 2011-06-28 11:54 -0700
Re: Significant figures calculation Mel <mwilson@the-wire.com> - 2011-06-28 16:47 -0400
Re: Significant figures calculation Erik Max Francis <max@alcyone.com> - 2011-06-28 14:01 -0700
Re: Significant figures calculation Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-28 18:35 +1000
Re: Significant figures calculation Erik Max Francis <max@alcyone.com> - 2011-06-28 11:59 -0700
Re: Significant figures calculation Erik Max Francis <max@alcyone.com> - 2011-06-27 20:49 -0700
Re: Significant figures calculation Ethan Furman <ethan@stoneleaf.us> - 2011-06-27 15:58 -0700
Re: Significant figures calculation Harold <dadapapa@googlemail.com> - 2011-06-24 18:50 -0700
csiph-web