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


Groups > comp.lang.python > #29770

Re: Exact integer-valued floats

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '(at': 0.03; 'float': 0.05; '754': 0.09; 'assumed': 0.09; 'internally': 0.09; 'least)': 0.09; 'sep': 0.09; 'zero.': 0.09; 'cc:addr:python-list': 0.10; 'ebcdic': 0.16; 'oddity': 0.16; 'polling': 0.16; 'vectors': 0.16; 'wrote:': 0.17; 'integer': 0.17; 'tim': 0.18; '>>>': 0.18; 'bit': 0.21; 'cc:2**0': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'non': 0.24; 'machine': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'first.': 0.27; 'ibm': 0.27; "d'aprano": 0.29; 'steven': 0.29; 'convert': 0.29; 'point': 0.31; 'could': 0.32; 'pm,': 0.35; 'there': 0.35; 'but': 0.36; 'bad': 0.37; 'two': 0.37; 'systems,': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'telling': 0.61; 'series': 0.63; 'different': 0.63; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'interrupt': 0.84; 'multiply': 0.84; 'received:74.208.4.194': 0.84; 'dennis': 0.91
Date Sat, 22 Sep 2012 19:06:08 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To Tim Roberts <timr@probo.com>
Subject Re: Exact integer-valued floats
References <505ca3e9$0$29981$c3e8da3$5496439d@news.astraweb.com> <7xzk4j6mmq.fsf@ruckus.brouhaha.com> <505d163b$0$29981$c3e8da3$5496439d@news.astraweb.com> <mailman.1062.1348290070.27098.python-list@python.org> <vn9s585ir3j6cjnfpbnsf3oa5j1g77cap2@4ax.com>
In-Reply-To <vn9s585ir3j6cjnfpbnsf3oa5j1g77cap2@4ax.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:mWtO6J2AWA7G5f+5UpIjn3XmjHyNKkDBF1tTh6Vs+FY g95MpWjhh2oD9JXO9dHyfaHptCbXs7w5/PxMZTwrlDD7+FCUoQ 55EUDZhy5PX0j/ZzC2/0XjQcVASQDSedjFIC+mes8aXk8lN25H WxVCH5jx3AsRo0hr0n4Qn+lUVJGvorY9jXLztRjlUo5VRbXTBa ceeSgnsPjx4n5hxQ6TjGQJAztQiN9NJap8yQMJO62qA7ur9PAs XMjFJeZ1R7RpUeJg7fTWqIMpQDAl7xCV16YvtkqyRl2c3q6iYq 7elQhgHmG/3LUOBuGc95go45w4XIcFGYD6e5fP83gJ5VOTVFQ= =
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1091.1348355202.27098.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348355202 news.xs4all.nl 6882 [2001:888:2000:d::a6]:37112
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29770

Show key headers only | View raw


On 09/22/2012 05:05 PM, Tim Roberts wrote:
> Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>> On 22 Sep 2012 01:36:59 GMT, Steven D'Aprano wrote:
>>> For non IEEE 754 floating point systems, there is no telling how bad the 
>>> implementation could be :(
>> 	Let's see what can be found...
>>
>> 	IBM 360: Same as Sigma-6 (no surprise; hearsay is the Sigma was
>> designed by renegade IBM folk; even down to using EBCDIC internally --
>> but with a much different interrupt system [224 individual interrupt
>> vectors as I recall, vs the IBM's 7 vectors and polling to find what
>> device]).
> The Control Data 6000/Cyber series had sign bit and 11-bit exponent, with
> either a 48-bit mantissa or a 96-bit mantissa, packed into one or two
> 60-bit words.  Values were not automatically normalized, so there was no
> assumed 1 bit, as in IEEE-754.

And it's been a long time (about 39 years), but as I recall the CDC 6400
(at least) had no integer multiply or divide.  You had to convert to
float first.  The other oddity about the CDC series is it's the last
machine I've encountered that used ones-complement for ints, with two
values for zero.


-- 

DaveA

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


Thread

Exact integer-valued floats Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-21 17:29 +0000
  Re: Exact integer-valued floats Ian Kelly <ian.g.kelly@gmail.com> - 2012-09-21 12:13 -0600
  Re: Exact integer-valued floats Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2012-09-21 22:47 +0300
  Re: Exact integer-valued floats Nobody <nobody@nowhere.com> - 2012-09-21 20:59 +0100
  Re: Exact integer-valued floats Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-21 16:26 -0400
    Re: Exact integer-valued floats Hans Mulder <hansmu@xs4all.nl> - 2012-09-21 23:04 +0200
      Re: Exact integer-valued floats Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-21 20:54 -0400
  Re: Exact integer-valued floats Alister <alister.ware@ntlworld.com> - 2012-09-21 21:14 +0000
  Re: Exact integer-valued floats Paul Rubin <no.email@nospam.invalid> - 2012-09-21 15:23 -0700
    Re: Exact integer-valued floats Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-22 01:36 +0000
      Re: Exact integer-valued floats Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-22 01:01 -0400
        Re: Exact integer-valued floats Tim Roberts <timr@probo.com> - 2012-09-22 14:05 -0700
          Re: Exact integer-valued floats Dave Angel <d@davea.name> - 2012-09-22 19:06 -0400
            Re: Exact integer-valued floats Hans Mulder <hansmu@xs4all.nl> - 2012-09-23 09:45 +0200
          Re: Exact integer-valued floats wrw@mac.com - 2012-09-24 11:29 -0400
    Re: Exact integer-valued floats Nobody <nobody@nowhere.com> - 2012-09-22 11:19 +0100

csiph-web