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: 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 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> <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On 05/03/2015 05:22 AM, Cecil Westerhof wrote: > Op Sunday 3 May 2015 10:40 CEST schreef Ben Finney: > >> Cecil Westerhof 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