CDiv(a:Cargo, n:Int):Cargo
 CDiv(a:Cargo, b:Cargo):Int

Divide cargo sets.

In the first form, tries to divide the cargo set a into n equal parts, and returns the size of one part, as a cargo set.

In the second form, tries to determine how many times b can be removed from a. Supply sale is taken into account.

See also: Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.