Re: Math Question....

From: Date: Thu, 22 Apr 2010 14:12:12 +0000
Subject: Re: Math Question....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-304416@lists.php.net to get a copy of this message
Dan Joseph wrote:
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. 1,252,398 DIV 30 = 41,746 groups of 30.
1,252,398 MOD 30 = 18 items in last group Stephen

« previous php.general (#304416) next »