Re: Math Question....
| From: | Dotan Cohen | Date: | Fri, 23 Apr 2010 12:33:43 +0000 |
| Subject: | Re: Math Question.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304472@lists.php.net to get a copy of this message | ||
On 22 April 2010 17:07, Dan Joseph <dmjoseph@gmail.com> wrote:
> Howdy,
>
> This is a math question, but I'm doing the code in PHP, and have expunged
> all resources... hoping someone can guide me here. For some reason, I can't
> figure this out.
>
> I want to take a group of items, and divide them into equal groups based on
> a max per group. Example.
>
> 1,252,398 -- divide into equal groups with only 30 items per group max.
>
> Can anyone guide me towards an algorithm or formula name to solve this? PHP
> code or Math stuff is fine. Either way...
>
> Thanks...
>
What is wrong with 626,299 groups of 2 items each (done in my head, so
I might be off a little)?
--
Dotan Cohen
http://bido.com
http://what-is-what.com