Share via


BigDecimal.DivideToIntegralValue Method

Definition

Overloads

DivideToIntegralValue(BigDecimal, MathContext)

Returns a BigDecimal whose value is the integer part of (this / divisor).

DivideToIntegralValue(BigDecimal)

Returns a BigDecimal whose value is the integer part of the quotient (this / divisor) rounded down.

DivideToIntegralValue(BigDecimal, MathContext)

Returns a BigDecimal whose value is the integer part of (this / divisor).

[Android.Runtime.Register("divideToIntegralValue", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetDivideToIntegralValue_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? DivideToIntegralValue (Java.Math.BigDecimal? divisor, Java.Math.MathContext? mc);
[<Android.Runtime.Register("divideToIntegralValue", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetDivideToIntegralValue_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")>]
abstract member DivideToIntegralValue : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal
override this.DivideToIntegralValue : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal

Parameters

divisor
BigDecimal

value by which this BigDecimal is to be divided.

mc
MathContext

the context to use.

Returns

The integer part of this / divisor.

Attributes

Exceptions

if divisor == null or mc == null.

if divisor == 0.

if mc.getPrecision() > 0 and the result requires more digits to be represented.

Remarks

Java documentation for java.math.BigDecimal.divideToIntegralValue(java.math.BigDecimal, java.math.MathContext).

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

DivideToIntegralValue(BigDecimal)

Returns a BigDecimal whose value is the integer part of the quotient (this / divisor) rounded down.

[Android.Runtime.Register("divideToIntegralValue", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetDivideToIntegralValue_Ljava_math_BigDecimal_Handler")]
public virtual Java.Math.BigDecimal? DivideToIntegralValue (Java.Math.BigDecimal? divisor);
[<Android.Runtime.Register("divideToIntegralValue", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetDivideToIntegralValue_Ljava_math_BigDecimal_Handler")>]
abstract member DivideToIntegralValue : Java.Math.BigDecimal -> Java.Math.BigDecimal
override this.DivideToIntegralValue : Java.Math.BigDecimal -> Java.Math.BigDecimal

Parameters

divisor
BigDecimal

value by which this BigDecimal is to be divided.

Returns

The integer part of this / divisor.

Attributes

Exceptions

if divisor == null.

if divisor == 0.

Remarks

Java documentation for java.math.BigDecimal.divideToIntegralValue(java.math.BigDecimal).

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