#40878 [Opn->Fbk]: mod returns wrong value

From: Date: Wed, 21 Mar 2007 09:17:20 +0000
Subject: #40878 [Opn->Fbk]: mod returns wrong value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110631@lists.php.net to get a copy of this message
ID: 40878 Updated by: derick@php.net Reported By: schmidt at ds-designs dot de -Status: Open +Status: Feedback Bug Type: Math related Operating System: Windows, Linux PHP Version: 4.4.6 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. I can not reproduce this, it shows 95 for me for all tests... Previous Comments: ------------------------------------------------------------------------ [2007-03-21 09:11:29] schmidt at ds-designs dot de Sorry, wrong PHP Version ------------------------------------------------------------------------ [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 (#110631) next »