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!newsfeed1a.news.xs4all.nl!xs4all!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.028 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; ';-)': 0.03; 'digest': 0.04; 'cest': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Converting': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'absolute': 0.30; 'bigger': 0.30; 'message- id:@mail.gmail.com': 0.30; 'writes:': 0.31; 'cases': 0.33; 'maybe': 0.34; 'received:google.com': 0.35; 'should': 0.36; 'ben': 0.38; 'pm,': 0.38; 'most': 0.60; 'more': 0.64; 'sunday': 0.68; '2015': 0.84; 'complex,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=PhBngoalxWwYeysK0PWZCqXKo7nn60EXvF0u7EXkHWw=; b=U/6kYdLwsqQSK0ZNKszbdIF9kX6LCPXTiyJOHMcS8jaFSkKO7N3Uu+mVmXsej4QsyF W135Qj1VZWuglWbY4Hn8XWwOPCRvfKCpbZFG6Kh47teKuZLyV/TSAZMuoVARYMXbRCz0 Bb4VynbmLq66hLpy2QydW7rD474NBZodVgF4GHR634cggqQ/KMOv1r5GfH7kSTALeWHL Gk2wDIl2S/dKro45RAzECP45q0x6Ghnxp1RaaGuaGr0JZgSDMdfepVU6BoIvUu692RvZ 06SoCJqhjAaKSwr6i4IPwZk2g7cXbaGVlj72q0qWebkoKx/oM5aDuQU3BWh5VEdhm2E+ 8dwQ== MIME-Version: 1.0 X-Received: by 10.107.160.202 with SMTP id j193mr22041885ioe.43.1430646704606; Sun, 03 May 2015 02:51:44 -0700 (PDT) In-Reply-To: <87mw1mkoc5.fsf@Equus.decebal.nl> References: <87vbgakrlr.fsf@Equus.decebal.nl> <87mw1mkoc5.fsf@Equus.decebal.nl> Date: Sun, 3 May 2015 19:51:44 +1000 Subject: Re: Converting 5.223701009526849e-05 to 5e-05 From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430646707 news.xs4all.nl 2873 [2001:888:2000:d::a6]:54987 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89845 On Sun, May 3, 2015 at 7:22 PM, 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 maybe a fractions.Fraction, or a decimal.Decimal, or a complex, or maybe a RXSTRING or a Gmp.mpf! There's more than one way to store a number... ChrisA