note 38934 deleted from language.operators.arithmetic by hholzgra

From: Date: Thu, 02 Aug 2012 15:01:22 +0000
Subject: note 38934 deleted from language.operators.arithmetic by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189790@lists.php.net to get a copy of this message
Note Submitter: php AT internethoofdkantoor.nl ---- For the mathematicians among us: The mod operator % works a bit differently than in mathematics (e.g. in group theory), in that negative remainders aren't represented by their positive equivalence classes, as is common in mathematics. An example: -1%7 returns -1, instead of 6. it depends a bit on how you interpret 'remainder of a division', i.e. if you want the remainder to be always positive.

« previous php.notes (#189790) next »