Rational Numbers
Facundo Batista
facundo at taniquetil.com.ar
Thu Jan 11 15:14:13 EST 2007
Noud Aldenhoven wrote:
> When I was programming in a mathematical project I began to wonder if python
> supports rational numbers[1]. In a language like magma[2] it's not such a
> problem. Does python supports something simular?
Python does not have rational numbers.
There's a (rejected) PEP about this, PEP-239:
http://www.python.org/dev/peps/pep-0239/
Maybe you also want to read the section "Why not rational?" of
PEP-327...
http://www.python.org/dev/peps/pep-0327/#why-not-rational
...and even take a look to gmpy:
http://gmpy.sourceforge.net/
Question: Why do you say that it's a problem?
Regards,
--
. Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-list
mailing list