A ProductAggregator is an Aggregator that calculates the product of numeric values, returning the product as a Double. If no values were encountered, then the returned value is 1. This Aggregator overrides the terminateDoubleDouble method, so that the product is also available as a DoubleDouble. This allows the product to be used by other Aggregators as a high-precision DoubleDouble.
Create and use an ProductAggregator, with one of the following methods:
The values returned by the property of the object must be numeric.
The product is calculated by multiplying together all encountered values.