Newsgroups: comp.lang.python
From: Hans Mulder <han...@xs4all.nl>
Date: Sun, 23 Sep 2012 09:45:33 +0200
Local: Sun, Sep 23 2012 3:45 am
Subject: Re: Exact integer-valued floats
On 23/09/12 01:06:08, Dave Angel wrote:
> On 09/22/2012 05:05 PM, Tim Roberts wrote:
You didn't have to convert if your ints would fit in 48 bits.
>> Dennis Lee Bieber <wlfr...@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
> And it's been a long time (about 39 years), but as I recall the CDC 6400
If that was the case, then using the float multiply and divide instructions would do the trick. > The other oddity about the CDC series is it's the last machine I've
Floats still have 0.0 and -0.0, even in IEEE-754.
> encountered that used ones-complement for ints, with two values for zero. Was Python ever ported to such unusual hardware?
-- HansM
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||