#40878 [Opn]: mod returns wrong value

From: Date: Wed, 21 Mar 2007 09:11:29 +0000
Subject: #40878 [Opn]: mod returns wrong value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110630@lists.php.net to get a copy of this message
ID: 40878 User updated by: schmidt at ds-designs dot de Reported By: schmidt at ds-designs dot de Status: Open Bug Type: Math related Operating System: Windows, Linux -PHP Version: 4.4.5 +PHP Version: 4.4.6 New Comment: Sorry, wrong PHP Version Previous Comments: ------------------------------------------------------------------------ [2007-03-21 09:09:33] schmidt at ds-designs dot de Description: ------------ 995 % 100 returns 94... Why? Reproduce code: --------------- <?php $val = 995 % 100; print($val); ?> Expected result: ---------------- 95 Actual result: -------------- 94 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40878&edit=1

« previous php.bugs (#110630) next »