Re: Math Question....
| From: | Dan Joseph | Date: | Thu, 22 Apr 2010 14:17:10 +0000 |
| Subject: | Re: Math Question.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304417@lists.php.net to get a copy of this message | ||
On Thu, Apr 22, 2010 at 10:12 AM, Stephen <stephen-d@rogers.com> wrote:
> 1,252,398 DIV 30 = 41,746 groups of 30.
>
> 1,252,398 MOD 30 = 18 items in last group
>
Well, the only problem with going that route, is the one group is not
equally sized to the others. 18 is ok for a group in this instance, but if
it was a remainder of only 1 or 2, there would be an issue. Which is where
I come to looking for a the right method to break it equally.
--
-Dan Joseph
www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo
Code "NEWTHINGS" for 10% off initial order
http://www.facebook.com/canishosting
http://www.facebook.com/originalpoetry