Ask a Question related to PHP Development, Design and Development.
-
Dean Baldwin #1
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
Dean Baldwin 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* ... -
[PHP] Help with Mod mathematical function
http://us4.php.net/math The operator you want is % Eg: 5%3 = 2 <desa15@necso.es> wrote in message... -
Jason Wong #2
Re: [PHP] Help with Mod mathematical function
On Wednesday 06 August 2003 18:19, Dean Baldwin wrote:
manual > Operators> 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.
--
Jason Wong -> Gremlins Associates -> [url]www.gremlins.biz[/url]
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
[url]http://marc.theaimsgroup.com/?l=php-general[/url]
------------------------------------------
/*
Putt's Law:
Technology is dominated by two types of people:
Those who understand what they do not manage.
Those who manage what they do not understand.
*/
Jason Wong Guest
-
Nadim Attari #3
Re: Help with Mod mathematical function
> Data = (index Mod 16)
[url]http://www.php.net/manual/en/language.operators.arithmetic.php[/url]
Nadim Attari Guest



Reply With Quote

