float comparison confusion

chrolson at gmail.com chrolson at gmail.com
Sat Jan 20 00:55:23 CET 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