gcd: Greatest common divisor (GCD)

View source: R/gcd.R

gcdR Documentation

Greatest common divisor (GCD)

Description

This is used by the Intermarket Spread objects to find the largest, common contract size.

Usage

gcd(a, b)

Arguments

a

An integer

b

Another integer

Value

The greatest common divisor of a and b

See Also

Algorithm is descibed on Wikipedia


pteetor/tutils documentation built on April 25, 2024, 9:14 a.m.