note 54579 deleted from function.fmod by betz

From: Date: Fri, 08 Jul 2005 15:23:29 +0000
Subject: note 54579 deleted from function.fmod by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91680@lists.php.net to get a copy of this message
Note Submitter: sonicseaweed at gmail dot com Reason: useless ---- I'm not so sure that fmod works correctly with negative numbers. "The mod function is defined as the amount by which a number exceeds the largest integer multiple of the divisor that is not greater than that number." http://mathforum.org/library/drmath/view/52343.html In the link page, the example is fmod(-340,60) should give 20 (positive) while fmod(340,60) should give 40 (positive).

« previous php.notes (#91680) next »