BigInteger.DivideAndRemainder(BigInteger) Method

Definition

Returns an array of two BigIntegers containing (this / val) followed by (this % val).

[Android.Runtime.Register("divideAndRemainder", "(Ljava/math/BigInteger;)[Ljava/math/BigInteger;", "GetDivideAndRemainder_Ljava_math_BigInteger_Handler")]
public virtual Java.Math.BigInteger[] DivideAndRemainder (Java.Math.BigInteger val);
[<Android.Runtime.Register("divideAndRemainder", "(Ljava/math/BigInteger;)[Ljava/math/BigInteger;", "GetDivideAndRemainder_Ljava_math_BigInteger_Handler")>]
abstract member DivideAndRemainder : Java.Math.BigInteger -> Java.Math.BigInteger[]
override this.DivideAndRemainder : Java.Math.BigInteger -> Java.Math.BigInteger[]

Parameters

val
BigInteger

value by which this BigInteger is to be divided, and the remainder computed.

Returns

an array of two BigIntegers: the quotient (this / val) is the initial element, and the remainder (this % val) is the final element.

Attributes

Exceptions

if divisor == null.

if divisor == 0.

Remarks

Java documentation for java.math.BigInteger.divideAndRemainder(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.

Applies to

See also