note 38934 added to language.operators.arithmetic

From: Date: Mon, 12 Jan 2004 21:15:43 +0000
Subject: note 38934 added to language.operators.arithmetic
Groups: php.notes 
Request: Send a blank email to php-notes+get-63366@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/language.operators.arithmetic.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38934 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38934&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38934&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63366) next »