Re: Problem with comparing negative numbers?
Reinhard Mueller <[email protected]>
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Organization | GNU Enterprise |
| Message-ID | <[email protected]> |
Am Freitag, den 25.11.2005, 13:17 +0100 schrieb Zvonimir Jericevic: > Problem is in results: I get that -1 < -5 and -6 > -5, and -10 < -5 and 0 > -5. Hehe, cool learning experience :-) The "unos" value you get ist most probably a string, so python compares lexically. What you want to check is if int (unos) < -5:... Reinhard _______________________________________________ Gnue mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnue
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDhx//4LscQraoxVkRAh1TAJ9tecKeDN3hgLa+PxaRONF4ePoR1gCdHGPx /CrjA8mHecmssdz1V7NBgXs= =tqdx -----END PGP SIGNATURE-----