Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4507 invoked by uid 1010); 6 Aug 2004 07:30:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4407 invoked by uid 1007); 6 Aug 2004 07:30:05 -0000 Message-ID: <20040806073005.4406.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 06 Aug 2004 08:33:29 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en, en-us MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 81.138.11.136 Subject: Re: Modulo Function returns incorrect results From: lester@lsces.co.uk (Lester Caine) Matthew Boehm wrote: > Returns 11. What is going on? Was my C.S. Professor wrong in telling us > that the % function returns the left side of the decimal in a division? Try RIGHT side, but as an integer remainder ( fraction * divisor ) -- Lester Caine ----------------------------- L.S.Caine Electronic Services