다음을 통해 공유


BigDecimal.Multiply Method

Definition

Overloads

Multiply(BigDecimal)

Returns a plain BigDecimal whose value is this*rhs, using fixed point arithmetic.

Multiply(BigDecimal, MathContext)

Returns a BigDecimal whose value is this*rhs.

Multiply(BigDecimal)

Returns a plain BigDecimal whose value is this*rhs, using fixed point arithmetic.

[Android.Runtime.Register("multiply", "(Landroid/icu/math/BigDecimal;)Landroid/icu/math/BigDecimal;", "GetMultiply_Landroid_icu_math_BigDecimal_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Multiply (Android.Icu.Math.BigDecimal? rhs);
[<Android.Runtime.Register("multiply", "(Landroid/icu/math/BigDecimal;)Landroid/icu/math/BigDecimal;", "GetMultiply_Landroid_icu_math_BigDecimal_Handler", ApiSince=24)>]
abstract member Multiply : Android.Icu.Math.BigDecimal -> Android.Icu.Math.BigDecimal
override this.Multiply : Android.Icu.Math.BigDecimal -> Android.Icu.Math.BigDecimal

Parameters

rhs
BigDecimal

The BigDecimal for the right hand side of the multiplication.

Returns

A BigDecimal whose value is this*rhs, using fixed point arithmetic.

Attributes

Remarks

Returns a plain BigDecimal whose value is this*rhs, using fixed point arithmetic.

The same as #add(BigDecimal, MathContext), where the BigDecimal is rhs, and the context is new MathContext(0, MathContext.PLAIN).

The length of the decimal part (the scale) of the result will be the sum of the scales of the operands, if they were formatted without exponential notation.

Java documentation for android.icu.math.BigDecimal.multiply(android.icu.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*rhs.

[Android.Runtime.Register("multiply", "(Landroid/icu/math/BigDecimal;Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetMultiply_Landroid_icu_math_BigDecimal_Landroid_icu_math_MathContext_Handler", ApiSince=24)]
public virtual Android.Icu.Math.BigDecimal? Multiply (Android.Icu.Math.BigDecimal? rhs, Android.Icu.Math.MathContext? set);
[<Android.Runtime.Register("multiply", "(Landroid/icu/math/BigDecimal;Landroid/icu/math/MathContext;)Landroid/icu/math/BigDecimal;", "GetMultiply_Landroid_icu_math_BigDecimal_Landroid_icu_math_MathContext_Handler", ApiSince=24)>]
abstract member Multiply : Android.Icu.Math.BigDecimal * Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal
override this.Multiply : Android.Icu.Math.BigDecimal * Android.Icu.Math.MathContext -> Android.Icu.Math.BigDecimal

Parameters

rhs
BigDecimal

The BigDecimal for the right hand side of the multiplication.

set
MathContext

The MathContext arithmetic settings.

Returns

A BigDecimal whose value is this*rhs.

Attributes

Remarks

Returns a BigDecimal whose value is this*rhs.

Implements the multiplication (<b>&#42;</b>) operator (as defined in the decimal documentation, see BigDecimal class header), and returns the result as a BigDecimal object.

Java documentation for android.icu.math.BigDecimal.multiply(android.icu.math.BigDecimal, android.icu.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