Re: Re: #22527 [Opn->Bgs]: Modulus returned negative value

From: Date: Tue, 04 Mar 2003 17:53:04 +0000
Subject: Re: Re: #22527 [Opn->Bgs]: Modulus returned negative value
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94772@lists.php.net to get a copy of this message
> Well, Perl can lean the other way as well actually. Try this: Is there some documentation why the default is as it is? > You will see it gives you -6. Like I said, it comes down to which way you > truncate. Programmers tend to think that something like (int)(-3.4) > should result in -3. If that is what you expect, then I think you also > have to expect -27%7 to return -6. Agreed. - Sascha

« previous php.dev (#94772) next »