True Division in Python
Olexandr Melnyk
omelnyk at gmail.com
Wed Dec 6 18:58:20 EST 2006
6 Dec 2006 15:41:04 -0800, kermit at polaris.net <kermit at polaris.net>:
>
> However, today I reviewed the method to be used in Python to get true
> division, and this gave
> me an idea how true division could be implemented without interferring
> with the use of
>
> / for integer division.
>
> Use / for integer division
>
> single slash is the operator for integer division.
>
> Use ./ for true division.
>
> period slash is the operator for true division.
>
Such idea was already proposed: http://www.python.org/dev/peps/pep-0238/
------------------------------------------------
Olexandr "Kynlem" Melnyk,
http://omelnyk.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061207/1e8d55e8/attachment.html>
More information about the Python-list
mailing list