BigInteger.Gcd(BigInteger) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a BigInteger whose value is the greatest common divisor of
abs(this)
and abs(val)
.
[Android.Runtime.Register("gcd", "(Ljava/math/BigInteger;)Ljava/math/BigInteger;", "GetGcd_Ljava_math_BigInteger_Handler")]
public virtual Java.Math.BigInteger Gcd (Java.Math.BigInteger val);
[<Android.Runtime.Register("gcd", "(Ljava/math/BigInteger;)Ljava/math/BigInteger;", "GetGcd_Ljava_math_BigInteger_Handler")>]
abstract member Gcd : Java.Math.BigInteger -> Java.Math.BigInteger
override this.Gcd : Java.Math.BigInteger -> Java.Math.BigInteger
Parameters
- val
- BigInteger
value with which the GCD is to be computed.
Returns
GCD(abs(this), abs(val))
- Attributes
Exceptions
if value == null
.
Remarks
Java documentation for java.math.BigInteger.gcd(java.math.BigInteger)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.