WebApp Sec mailing list archives
modulo question
From: martin <gremagehan () web de>
Date: Fri, 15 Apr 2005 10:47:49 +0200
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, I have slightly academic question about modulo. I sent this message here because I thing there are many of gurus which working with modulo operator. I have tried in python and in C++ following: python C++ 1%2 1 1 - -1%2 1 -1 1%-2 -1 1 - -1%-2 -1 -1 What is right? Do you know some applications which using modulo with negative numbers? Have you some references to definition (mathematical def. and properties) of modulo? Thanks in advance, Martin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFCX4Bc9w5olJf0Oq8RAsvSAKCnvAdrdXBL/aqiSTCANjT2BKb7NACcCCel 7b+pYp0k/1hMQPOyAY2M5/4= =zLC1 -----END PGP SIGNATURE-----
Current thread:
- modulo question martin (Apr 18)
- Re: modulo question Michael Vergoz (Apr 20)
- Re: modulo question Skip Carter (Apr 20)
- Re: modulo question Scovetta Labs (Apr 20)
- Re: modulo question Federico CastaƱeda (Apr 20)
- Re: modulo question Kelly John Rose (Apr 20)
- Re: modulo question warnings (Apr 21)