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


Groups > comp.lang.python > #70686

Re: Significant digits in a float?

X-Received by 10.50.50.2 with SMTP id y2mr11929783ign.1.1398709910254; Mon, 28 Apr 2014 11:31:50 -0700 (PDT)
X-Received by 10.140.109.203 with SMTP id l69mr38086qgf.32.1398709910220; Mon, 28 Apr 2014 11:31:50 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!uq10no3795igb.0!news-out.google.com!dz10ni22607qab.1!nntp.google.com!ih12no722620qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Mon, 28 Apr 2014 11:31:49 -0700 (PDT)
In-Reply-To <mailman.9551.1398702541.18130.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=24.136.109.108; posting-account=dAOV_goAAABEUkqpkMcBZ68KkIzfCnsO
NNTP-Posting-Host 24.136.109.108
References <B654EA7E-35C7-4A78-A673-4CAD0C23B5C0@panix.com> <mailman.9551.1398702541.18130.python-list@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <3368085f-e841-4ba1-a37e-12bae8d58746@googlegroups.com> (permalink)
Subject Re: Significant digits in a float?
From Roy Smith <roy@panix.com>
Injection-Date Mon, 28 Apr 2014 18:31:50 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:70686

Show key headers only | View raw


On Monday, April 28, 2014 12:28:59 PM UTC-4, Chris Angelico wrote:

> Terminology question: Why do you count only what's after the decimal
> point? I would describe these as having between 2 and 6 significant
> figures. Will they always have two digits before the decimal, or does
> your precision really care only about what's after it?

Hmmm, yeah, I was being sloppy in my description.  Definitely would have gotten points off in physics class for being so sloppy :-)

No, there's not always two digits before the decimal.  Could be anywhere from 0 to 3 digits before. What I'm really after is how many digits are after the decimal point.

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


Thread

Re: Significant digits in a float? Chris Angelico <rosuav@gmail.com> - 2014-04-29 02:28 +1000
  Re: Significant digits in a float? Roy Smith <roy@panix.com> - 2014-04-28 11:31 -0700

csiph-web