BigDecimal.Multiply 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
Multiply(BigDecimal) |
Returns a |
Multiply(BigDecimal, MathContext) |
Returns a |
Multiply(BigDecimal)
Returns a BigDecimal
whose value is (this ×
multiplicand)
, and whose scale is (this.scale() +
multiplicand.scale())
.
[Android.Runtime.Register("multiply", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetMultiply_Ljava_math_BigDecimal_Handler")]
public virtual Java.Math.BigDecimal? Multiply (Java.Math.BigDecimal? multiplicand);
[<Android.Runtime.Register("multiply", "(Ljava/math/BigDecimal;)Ljava/math/BigDecimal;", "GetMultiply_Ljava_math_BigDecimal_Handler")>]
abstract member Multiply : Java.Math.BigDecimal -> Java.Math.BigDecimal
override this.Multiply : Java.Math.BigDecimal -> Java.Math.BigDecimal
Parameters
- multiplicand
- BigDecimal
value to be multiplied by this BigDecimal
.
Returns
this * multiplicand
- Attributes
Exceptions
if multiplicand == null
.
Remarks
Java documentation for java.math.BigDecimal.multiply(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
Multiply(BigDecimal, MathContext)
Returns a BigDecimal
whose value is (this ×
multiplicand)
, with rounding according to the context settings.
[Android.Runtime.Register("multiply", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetMultiply_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")]
public virtual Java.Math.BigDecimal? Multiply (Java.Math.BigDecimal? multiplicand, Java.Math.MathContext? mc);
[<Android.Runtime.Register("multiply", "(Ljava/math/BigDecimal;Ljava/math/MathContext;)Ljava/math/BigDecimal;", "GetMultiply_Ljava_math_BigDecimal_Ljava_math_MathContext_Handler")>]
abstract member Multiply : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal
override this.Multiply : Java.Math.BigDecimal * Java.Math.MathContext -> Java.Math.BigDecimal
Parameters
- multiplicand
- BigDecimal
value to be multiplied by this BigDecimal
.
- mc
- MathContext
the context to use.
Returns
this * multiplicand
, rounded as necessary.
- Attributes
Exceptions
if multiplicand == null
or mc == null
.
Remarks
Java documentation for java.math.BigDecimal.multiply(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.