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


Groups > comp.lang.python > #112010

Re: Float

Path csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail
From Lutz Horn <lutz.horn@posteo.de>
Newsgroups comp.lang.python
Subject Re: Float
Date Fri, 29 Jul 2016 11:56:55 +0200
Lines 28
Message-ID <mailman.19.1469786213.6033.python-list@python.org> (permalink)
References <da5a1bae-813f-4fef-a7b6-f67f258bcc85@googlegroups.com> <25fd0dbb-de4f-bfaf-cf4c-0d236df9c27d@posteo.de>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de CY1uc8Au3cA3tZNk6s2uTQOmSHqlQl+EMGnGMhE4aPHQ==
Return-Path <lutz.horn@posteo.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.109
X-Spam-Level *
X-Spam-Evidence '*H*': 0.78; '*S*': 0.00; 'builtin': 0.07; 'python': 0.10; '"real"': 0.16; 'approximates': 0.16; 'precision.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'string': 0.17; 'integer': 0.18; 'examples': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; '[2]': 0.27; 'url:wikipedia': 0.29; 'url:wiki': 0.30; "can't": 0.32; '[1]': 0.32; 'point': 0.33; 'url:python': 0.33; 'handle': 0.34; 'url:org': 0.36; '(and': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'someone': 0.38; 'means': 0.39; 'url:en': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'url:3': 0.60; 'real': 0.62; 'charset:windows-1252': 0.62; 'computers': 0.70; 'received:89': 0.80; '11:44': 0.84; 'received:89.146': 0.84; 'url:functions': 0.84; 'received:185': 0.91
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
In-Reply-To <da5a1bae-813f-4fef-a7b6-f67f258bcc85@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <25fd0dbb-de4f-bfaf-cf4c-0d236df9c27d@posteo.de>
X-Mailman-Original-References <da5a1bae-813f-4fef-a7b6-f67f258bcc85@googlegroups.com>
Xref csiph.com comp.lang.python:112010

Show key headers only | View raw


Am 07/29/2016 um 11:44 AM schrieb Cai Gengyang:
> Can someone explain in layman's terms what "float" means ?

The Python builtin float[1]

 > Return a floating point number constructed from a number or string x.

A floating point number[2] is number that is not an integer (and not a 
complex number). It

 > is the formulaic representation that approximates a real number

since computers can't handle handle "real" real numbers which would 
require infinite precision.

Examples are

1.0
3.14159

Lutz

[1] https://docs.python.org/3/library/functions.html#float
[2] https://en.wikipedia.org/wiki/Floating_point

-- 
https://www.lhorn.de/
https://emailselfdefense.fsf.org/de/

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


Thread

Float Cai Gengyang <gengyangcai@gmail.com> - 2016-07-29 02:44 -0700
  Re: Float Lutz Horn <lutz.horn@posteo.de> - 2016-07-29 11:56 +0200
  Re: Float Ben Finney <ben+python@benfinney.id.au> - 2016-07-29 20:25 +1000
  Re: Float Steven D'Aprano <steve@pearwood.info> - 2016-07-30 00:26 +1000
    Re: Float Cai Gengyang <gengyangcai@gmail.com> - 2016-07-30 03:21 -0700
      Re: Float Steven D'Aprano <steve@pearwood.info> - 2016-07-30 20:34 +1000
        Re: Float Cai Gengyang <gengyangcai@gmail.com> - 2016-07-30 04:44 -0700
          Re: Float Chris Angelico <rosuav@gmail.com> - 2016-07-30 21:51 +1000
            Re: Float Rustom Mody <rustompmody@gmail.com> - 2016-07-30 20:20 -0700
              Re: Float Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-08-04 00:28 -0700
          Re: Float Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-07-30 12:03 -0400
          Re: Float eryk sun <eryksun@gmail.com> - 2016-07-30 18:19 +0000

csiph-web