Re: [Python-Dev] Floating-point implementations

2008-12-10 Thread Mark Dickinson
On Tue, Dec 9, 2008 at 9:48 PM, Lie Ryan <[EMAIL PROTECTED]> wrote: > Why don't we create a DecimalFloat datatype which is a variable-width > floating point number. Decimal is variable precision fixed-point number, > while the plain ol' float would be system dependent floating point. Decimal is *a

Re: [Python-Dev] Floating-point implementations

2008-12-10 Thread Steve Holden
Lie Ryan wrote: > On Tue, 09 Dec 2008 12:15:53 -0500, Steve Holden wrote: > >> Is anyone aware of any implementations that use other than 64-bit >> floating-point? I'd be particularly interested in any that use greater >> precision than the usual 56-bit mantissa. Do modern 64-bit systems >> implem

Re: [Python-Dev] Floating-point implementations

2008-12-10 Thread Lie Ryan
On Tue, 09 Dec 2008 12:15:53 -0500, Steve Holden wrote: > Is anyone aware of any implementations that use other than 64-bit > floating-point? I'd be particularly interested in any that use greater > precision than the usual 56-bit mantissa. Do modern 64-bit systems > implement anything wider than

Re: [Python-Dev] Floating-point implementations

2008-12-10 Thread Mark Dickinson
On Tue, Dec 9, 2008 at 5:24 PM, Mark Dickinson <[EMAIL PROTECTED]> wrote: > I don't know of any. There are certainly places in the codebase that > assume 56 bits are enough. (I seem to recall it's something like > 56 bits for IBM, 53 bits for IEEE 754, 48 for Cray, and 52 or 56 for VAX.) Quick c

Re: [Python-Dev] Floating-point implementations

2008-12-09 Thread Martin v. Löwis
> Is anyone aware of any implementations that use other than 64-bit > floating-point? As I understand you are asking about Python implementations: sure, the gmpy package supports arbitrary-precision floating point. > I'd be particularly interested in any that use greater > precision than the usua

Re: [Python-Dev] Floating-point implementations

2008-12-09 Thread Steve Holden
Mark Dickinson wrote: > On Tue, Dec 9, 2008 at 5:15 PM, Steve Holden <[EMAIL PROTECTED]> wrote: >> precision than the usual 56-bit mantissa. Do modern 64-bit systems >> implement anything wider than the normal double? > > I may have misinterpreted your question. Are you asking simply > about what

Re: [Python-Dev] Floating-point implementations

2008-12-09 Thread Mark Dickinson
On Tue, Dec 9, 2008 at 5:15 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > precision than the usual 56-bit mantissa. Do modern 64-bit systems > implement anything wider than the normal double? I may have misinterpreted your question. Are you asking simply about what the hardware provides, or about

Re: [Python-Dev] Floating-point implementations

2008-12-09 Thread Mark Dickinson
On Tue, Dec 9, 2008 at 5:15 PM, Steve Holden <[EMAIL PROTECTED]> wrote: > Is anyone aware of any implementations that use other than 64-bit > floating-point? I'd be particularly interested in any that use greater > precision than the usual 56-bit mantissa. Do modern 64-bit systems > implement anyth

[Python-Dev] Floating-point implementations

2008-12-09 Thread Steve Holden
Is anyone aware of any implementations that use other than 64-bit floating-point? I'd be particularly interested in any that use greater precision than the usual 56-bit mantissa. Do modern 64-bit systems implement anything wider than the normal double? regards Steve -- Steve Holden+1 571