[Gllug] OT: algorithm needed

Ben Whyte ben at whyte-systems.co.uk
Sun Aug 10 20:49:42 UTC 2008


> Cant you do this by taking the total and dividing it by the max which 
> gives you the number of times that the max goes into the total, then 
> divide the total by this number which will give you equal number of blocks.
> 
> Wouldnt that give you what you want ?
> 
> Ben

Really must read what i type properly.  You need to round the total/max 
up to the next whole number before dividing total by it.

Ben
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list