Re: Help with Mod mathematical function

From: Date: Wed, 06 Aug 2003 14:32:30 +0000
Subject: Re: Help with Mod mathematical function
Groups: php.general 
Request: Send a blank email to php-general+get-158476@lists.php.net to get a copy of this message
http://us4.php.net/math The operator you want is % Eg: 5%3 = 2 <desa15@necso.es> wrote in message news:<OFE3132A7C.B9DA2EF2-ONC1256D7A.003ABACC@necso.es>... > > > if you turn on --enable-bcmath, you can use de bcmod function > equivalen to Mod operator from visual basic > > > Un saludo, Danny > > > > Dean Baldwin > <dean@neuvoice.com> Para: <php-general@lists.php.net> > cc: > 06/08/2003 12:19 Asunto: [PHP] Help with Mod mathematical function > > > > > > > Hi, > > I am porting a vb application across to php but have come up against a > small problem. The code uses the Mod calculation however I cannot find > any Mod in php. The line of code that uses it looks like: > > Data = (index Mod 16) > > Anybody have any ideas how I recreate this in php? Both data and index > are integers. > > Regards, > Dean > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > >

« previous php.general (#158476) next »