Open GoogleCodeExporter opened 9 years ago
1 billion decimal places is more than 3 billion bits, so the precision doesn't
fit in a machine integer on 32-bit systems (2^31-1 = 2,147,483,647). If you
have a 64-bit system, this should work fine. My suggestion is that you get a
64-bit system :)
Original comment by fredrik....@gmail.com
on 20 Apr 2011 at 4:41
I wonder why it crashes, it should raise a MemoryError instead, shouldn't it?
(At least this is what happens on my system.)
Original comment by Vinzent.Steinberg@gmail.com
on 11 May 2011 at 10:24
The mpmath helper functions in gmpy use the C long type internally. A C long is
32 bits on both 32 and 64-bit versions of Windows. I have implemented a fix
that uses a 64-bit integer type on 64-bit Windows in the development version of
gmpy2. The issue doesn't impact Linux systems since a C long is 64 bits on
64-bit versions of Linux. I'll update this issue when I release the next
version of gmpy2. If anyone would like a test build, just let me know.
Original comment by casevh
on 23 Jan 2012 at 7:31
Original issue reported on code.google.com by
matos.fr...@gmail.com
on 19 Apr 2011 at 8:52