Re: note 11526 added to Mathematical Functions

From: Date: Fri, 23 Feb 2001 20:10:26 +0000
Subject: Re: note 11526 added to Mathematical Functions
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-11492@lists.php.net to get a copy of this message
Ehem, it does: echo (-2 % 2)." ".(-3 % 2)." ".(4 % -2)." ".(5 % -2)."\n"; prints out: 0 -1 0 1 which is correct. I used version used PHP 4.0.4pl1 If you still find a problem see bugs.php.net for instructions, your note will be removed. --- poncet@webevent.org wrote: > the modulus % doesn't work with negative numbers :-( > > http://www.php.net/manual/en/ref.math.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

« previous php.notes (#11492) next »