rational numbers

Paul Rubin http
Tue Jan 17 11:24:06 EST 2006

Schüle Daniel <uval at rz.uni-karlsruhe.de> writes:
> does anybody know modules which make rational numbers available?
> and are there considerations to add them to the core, like
> complex numbers (maybe in Python 3)

I think it's not likely.  In Scheme, (/ 5 2) is the rational number
5/2, while in current Python, 5/2 is the integer 2.  If Python got
native rationals, we'd expect something similar.  But it's been
publicly announced that in Python 3, 5/2 will be the floating point
number 2.5.

More information about the Python-list mailing list