float comparison confusion

chrolson at gmail.com chrolson at gmail.com
Fri Jan 19 18:55:23 EST 2007


Type "help", "copyright", "credits" or "license" for more information.
>>> cmp(20.10, 20.9)
-1

Why is cmp returning -1 instead of returning positive integer?




More information about the Python-list mailing list