Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCharting > RSChartFunction > Classes > TRSCustomChartFunction > Methods

TRSCustomChartFunction.GreatestCommonDivisor(TRSCustomChart,Integer,Integer,TDateTime,Integer) Method

Scroll Prev Top Next More

Calculates the greatest common divisor (gcd) of the SourceChart Values and returns the value. The SourceChart Values are rounded into integers and the GCD calculated from this array. The GCD of two or more integers, when at least one of them is not zero, is the largest positive integer that divides the numbers without a remainder. For example, the GCD of 8 and 12 is 4.

Namespace: RSChartFunction



Type: TRSCustomChart

Chart to calculate the GCD from


Type: Integer

Lower bounds index into the SourceChart


Type: Integer

Upper bounds index into the SourceChart


Type: TDateTime

TimeStamp of the new value


Type: Integer

Return Value

Type: TRSChartValueType

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb