pricision of string.atof?
Fernando PĂ©rez
fperez528 at yahoo.com
Tue May 7 17:39:50 EDT 2002
Elvis Chen wrote:
> thx. This is the exact info I'm looking for. I'm aware how numbers are
> represented in a computer (hardware level), I just don't know how python
> does it internally (being a python newbie).
>
Python is written in C (ignoring jython for the time being), and python floats
are C doubles. There is no native python data type that uses C floats.
Python's integers are typically 32-bit integers (architecture dependent, I
believe), but Python also has arbitrary-length integers (obviously not
implemented as any native C type).
Cheers,
f.
More information about the Python-list
mailing list