BigDecimal.DivideToIntegralValue 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.
Overloads
DivideToIntegralValue(BigDecimal, MathContext) |
Returns a |
DivideToIntegralValue(BigDecimal) |
Returns a |
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
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.