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


Groups > comp.lang.python > #89848

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!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.python
Subject Re: Converting 5.223701009526849e-05 to 5e-05
Date Sun, 03 May 2015 12:02:21 +0200
Organization Decebal Computing
Lines 26
Message-ID <87egmykmhe.fsf@Equus.decebal.nl> (permalink)
References <87vbgakrlr.fsf@Equus.decebal.nl> <mailman.52.1430642455.12865.python-list@python.org> <87mw1mkoc5.fsf@Equus.decebal.nl> <mailman.59.1430646707.12865.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="1e75f8f7bcfe2945d0316cb03b0f6951"; logging-data="30427"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196/g81uZFzG8BCfbRwGfaY6PSVvxoRLME="
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
X-Face "(y8cC@tg_12{">GF'UXTW]FHI2wMiZNrnf'1EFQ&O#$m:f#O7+7}kR<J%a^F2lh4[N~Yz4 nSp#c+aQo1b5=?HcNEkQ7QzF<])O3X4MDL/AYjys&*mt>,v+Pti8=Vi/Z"g^?b"E
Cancel-Lock sha1:/VuT5LfYS8QNf35HpBBmOXTs6TA= sha1:mAgtYHK+8iGHsoVxcac4c+aUoBo=
X-Homepage http://www.decebal.nl/
Xref csiph.com comp.lang.python:89848

Show key headers only | View raw


Op Sunday 3 May 2015 11:51 CEST schreef Chris Angelico:

> On Sun, May 3, 2015 at 7:22 PM, Cecil Westerhof <Cecil@decebal.nl> 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 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...

Oops. :'-(
I still have to learn a lot.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

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