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


Groups > comp.lang.python > #66355

Question on using FP numbers in python 2

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <gheskett@wdtv.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.167
X-Spam-Level *
X-Spam-Evidence '*H*': 0.71; '*S*': 0.04; 'subject:Question': 0.07; 'subject:using': 0.09; 'python': 0.11; 'soap,': 0.16; 'subject:python': 0.16; 'fix': 0.17; 'cheers,': 0.24; 'code': 0.31; 'decimal': 0.31; 'subject:numbers': 0.31; 'url:non-standard http port': 0.33; 'received:66': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:unknown': 0.61; 'complete': 0.62; 'header:Message-Id:1': 0.63; 'notice:': 0.67; 'received:204': 0.75; '100': 0.79; 'boxes': 0.91; 'probe': 0.91
X-Spam-Status No, score=1.6 required=5.0
X-Spam-Level +
From Gene Heskett <gheskett@wdtv.com>
To python-list@python.org
Subject Question on using FP numbers in python 2
Date Fri, 14 Feb 2014 22:25:59 -0500
MIME-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding 7bit
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.6953.1392434770.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392434770 news.xs4all.nl 2850 [2001:888:2000:d::a6]:38015
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66355

Show key headers only | View raw


Greetings;

Is there something I can search for and fix in some python code that is 
giving me bogus answers that get good only when there is a valid digit to 
the left of the decimal point?

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

NOTICE: Will pay 100 USD for an HP-4815A defective but
complete probe assembly.

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


Thread

Question on using FP numbers in python 2 Gene Heskett <gheskett@wdtv.com> - 2014-02-14 22:25 -0500
  Re: Question on using FP numbers in python 2 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-15 04:26 +0000
    Re: Question on using FP numbers in python 2 Gene Heskett <gheskett@wdtv.com> - 2014-02-15 00:07 -0500
      Re: Question on using FP numbers in python 2 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-15 15:27 +0000
        Re: Question on using FP numbers in python 2 Gene Heskett <gheskett@wdtv.com> - 2014-02-15 12:27 -0500
    Re: Question on using FP numbers in python 2 Chris Angelico <rosuav@gmail.com> - 2014-02-15 16:28 +1100
  Re: Question on using FP numbers in python 2 Grant Edwards <invalid@invalid.invalid> - 2014-02-15 04:35 +0000
  Re: Question on using FP numbers in python 2 Gene Heskett <gheskett@wdtv.com> - 2014-02-15 00:50 -0500
  Re: Question on using FP numbers in python 2 Chris Angelico <rosuav@gmail.com> - 2014-02-15 17:08 +1100

csiph-web