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


Groups > comp.lang.python > #89864

Re: Converting 5.223701009526849e-05 to 5e-05

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; ';-)': 0.03; 'digest': 0.04; 'cest': 0.09; 'mentions': 0.09; 'subject:Converting': 0.16; 'uses,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'absolute': 0.30; 'bigger': 0.30; 'writes:': 0.31; 'cases': 0.33; 'should': 0.36; 'problems': 0.38; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'most': 0.60; 'more': 0.64; 'received:74.208': 0.68; 'sunday': 0.68; '2015': 0.84
Date Sun, 03 May 2015 07:34:27 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Converting 5.223701009526849e-05 to 5e-05
References <87vbgakrlr.fsf@Equus.decebal.nl> <mailman.52.1430642455.12865.python-list@python.org> <87mw1mkoc5.fsf@Equus.decebal.nl>
In-Reply-To <87mw1mkoc5.fsf@Equus.decebal.nl>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V03:K0:SowpVABtBLkc+gFRGJcDtlC6m5MhvIPTCuhDX4SVFUZPABtFj/L 0EuNIuKJUPiZpe9NhsIdxa8L8LBkL6yvPWQVx1lO/j25oyI+zPirqnPEZNZh8Lfh3szTBI4 cRqrSgUu3bZQIqkzlPiFPKhuFPRoFHmmEQQC9bnzuCaU/75/pguGo2mLpvEtkil6177XPKG PJF/282X2E00IAIoVIbwA==
X-UI-Out-Filterresults notjunk:1;
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.65.1430653659.12865.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430653659 news.xs4all.nl 2905 [2001:888:2000:d::a6]:60156
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:89864

Show key headers only | View raw


On 05/03/2015 05:22 AM, Cecil Westerhof wrote:
> Op Sunday 3 May 2015 10:40 CEST schreef Ben Finney:
>
>> Cecil Westerhof <Cecil@decebal.nl> writes:
>>
>>> When I have a value like 5.223701009526849e-05 in most cases I am
>>> not interested in all the digest after the dot.
>>
>> What type of value is it?
>
> If the absolute value is bigger as 0 and smaller as 1, it should be a
> float. ;-)
>

or for many uses, more likely a decimal.Decimal(), where many of the 
problems Ben mentions are moot.


-- 
DaveA

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


Thread

Converting 5.223701009526849e-05 to 5e-05 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-03 10:11 +0200
  Re: Converting 5.223701009526849e-05 to 5e-05 Ben Finney <ben+python@benfinney.id.au> - 2015-05-03 18:40 +1000
    Re: Converting 5.223701009526849e-05 to 5e-05 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-03 11:22 +0200
      Re: Converting 5.223701009526849e-05 to 5e-05 Chris Angelico <rosuav@gmail.com> - 2015-05-03 19:51 +1000
        Re: Converting 5.223701009526849e-05 to 5e-05 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-03 12:02 +0200
          Re: Converting 5.223701009526849e-05 to 5e-05 Chris Angelico <rosuav@gmail.com> - 2015-05-03 20:57 +1000
      Re: Converting 5.223701009526849e-05 to 5e-05 Dave Angel <davea@davea.name> - 2015-05-03 07:34 -0400
  Re: Converting 5.223701009526849e-05 to 5e-05 Ben Finney <ben+python@benfinney.id.au> - 2015-05-03 18:48 +1000
    Re: Converting 5.223701009526849e-05 to 5e-05 Alexander Blinne <news@blinne.net> - 2015-05-07 10:00 +0200

csiph-web