Hi,
i'd like to use 64 Bit Integer values in Python,
can anybody give me a hint on what are the limits
in Python?
Can i use signed and unsigned 64 Bit Integers?
Thanks for hints,
Torsten. 5 8373
Torsten Mohr wrote: Hi,
i'd like to use 64 Bit Integer values in Python, can anybody give me a hint on what are the limits in Python?
Can i use signed and unsigned 64 Bit Integers?
Thanks for hints, Torsten.
Hi,
I havn't tried it myself, since i don't own a 64-Bit processor, but http://groups.google.de/groups?hl=de...com%26rnum%3D1
and http://groups.google.de/groups?hl=de...com%26rnum%3D2
say, that you can use 64 bit integers in CPython, if your C compiller
supports 64 bit integer. May also depend on your OS.
But you have to read some groups in http://groups.google.com
Just search for 'Python 64 bit'. This will give you a lot of results, I
guess.
I think many people here can give you further information
Christian von Essen
"Torsten Mohr" <tm***@s.netic.de> wrote in message
news:c4**********@schleim.qwe.de... Hi,
i'd like to use 64 Bit Integer values in Python, can anybody give me a hint on what are the limits in Python?
Can i use signed and unsigned 64 Bit Integers?
Yes and no. Python has unlimited precision long
integers, so it should work without any special
effort for most things.
If you're trying to exploit truncation at the 64 bit
mark, though, you'll have to do it yourself with
tests.
John Roth
Thanks for hints, Torsten.
Torsten Mohr wrote: Hi,
i'd like to use 64 Bit Integer values in Python, can anybody give me a hint on what are the limits in Python?
Can i use signed and unsigned 64 Bit Integers?
Thanks for hints, Torsten. 10**100
10000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 0L
As for signed integers, the sky's the limit :-)
Peter
Arithmetic with 8-byte integers will be much faster when using Fortran
and C++ compilers that directly support it, compared to Python, which
resorts to infinite precision arithmetic when 4-byte integers cannot
be used. Search for "speed integer*8" in this newsgroup -- there was a
discussion in late Feb early March 2004.
Torsten Mohr <tm***@s.netic.de> wrote in message news:<c4**********@schleim.qwe.de>... Hi,
i'd like to use 64 Bit Integer values in Python, can anybody give me a hint on what are the limits in Python?
Can i use signed and unsigned 64 Bit Integers?
Thanks for hints, Torsten.
In message <c4*************@news.t-online.com>, Peter Otten wrote: As for signed integers, the sky's the limit :-)
Surely that's where you calculate pi...
--
Garry Knight ga*********@gmx.net ICQ 126351135
Linux registered user 182025 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Fisher |
last post by:
The most common sizes of integer types seem to be:
8 bits - signed char
16 bits - short
16 or 32 bits - int
32 or 64 bits - long
Question #1:
Does anyone know how common sizes other than...
|
by: Peter Piper |
last post by:
A Quick question if someone could help, im sure this has been asked
before, but googling is getting me now where slowly.
Is it possible to get an unsigned 32 bit integer field in Access.
Im...
|
by: Ray |
last post by:
When a single-bit bitfield that was formed from an enum
is promoted/cast into an integer, does ANSI C say anything
about whether that integer should be signed or unsigned?
SGI IRIX cc thinks it is...
|
by: junky_fellow |
last post by:
Can anybody please explain this:
When a value with integer type is converted to another integer type
other than _Bool,
if the new type is unsigned, the value is converted by repeatedly...
|
by: Frederick Gotham |
last post by:
I set about trying to find a portable way to set the value of UCHAR_MAX. At
first, I thought the following would work:
#define UCHAR_MAX ~( (unsigned char)0 )
However, it didn't work for me....
|
by: Frederick Gotham |
last post by:
I'd like to discuss the use of signed integers types where unsigned integers
types would suffice.
A common example would be:
#include <cassert>
#include <cstddef>
int...
|
by: Frederick Gotham |
last post by:
I just want to clarify my understanding of arithmetic and comparison
between two different integer types.
Phase (1): Integer Promotion
----------
All of the following types always get...
|
by: charles_gero |
last post by:
Hi all,
I had a question about the topics in the subject and posted to
comp.std.c, but feel it may also be appropriate here. Please excuse
this crosspost if it is in bad form.
I have a...
|
by: Spoon |
last post by:
Hello everyone,
In my code, I use uint16_t (exactly 16-bit-wide unsigned integer type)
and I need to print their value in base 10.
...
|
by: santosh |
last post by:
Hello all,
In K&R2 one exercise asks the reader to compute and print the limits for
the basic integer types. This is trivial for unsigned types. But is it
possible for signed types without...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| | |