Divide amount equally, automatically.
#1

I'm putting an import/export thing into my script, and they have to type in the amount to export. And I have to divide that equally depending on how many countries they have listed.

It could be:
- 3 Countries
- 6 Countries
- 9 Countries
- 12 Countries
- 15 Countries
- 18 Countries
- 20 Countries

I need to know how to automatically divide the amount they type in, because selecting countries will be in another dialog. It could be an even, or an odd number. And if it's an odd number, then I need to automatically divide it into very similar numbers.

Thanks.
Reply


Messages In This Thread
Divide amount equally, automatically. - by stormchaser206 - 07.09.2014, 12:54
Re: Divide amount equally, automatically. - by CutX - 07.09.2014, 13:54
Re: Divide amount equally, automatically. - by stormchaser206 - 07.09.2014, 14:17
Re: Divide amount equally, automatically. - by CutX - 07.09.2014, 14:21
Re: Divide amount equally, automatically. - by stormchaser206 - 07.09.2014, 16:05
Re: Divide amount equally, automatically. - by JM_Millers - 07.09.2014, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)