Ask a Question related to PHP Development, Design and Development.
-
Joshua Groboski #1
Re: [PHP] Help with Mod mathematical function
[url]http://us4.php.net/math[/url]
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<php-general@lists.php.net>> <dean@neuvoice.com> Para:
> cc:with Mod mathematical function> 06/08/2003 12:19 Asunto: [PHP] Help>>>
>
>
>
> 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
>
>
>
>
>
>
>Joshua Groboski Guest
-
Anyone mathematical?
Are you any good at maths? If so I was wondering if you can come up with a nice formular that I can program in Lingo that will calculate the angle... -
cfexecute for mathematical algorithms
Hi I need to write C++ programs to do long mathematical algorithms which I want to combine into cfm pages. I know java is quicker but i dont use... -
Mathematical differences?!
Hello all, I ported a algorithm from JavaScript to PHP and noticed that PHP outputs a different result than JS. For example: ... -
[PHP] Mathematical differences?!
How could that be?! 1:1 the same code but different outputs? Is this a PHP-bug? :-? *feelin' kinda' smart arsed today, if no one noticed* ... -
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...



Reply With Quote

