다음을 통해 공유


BigDecimal.ToBigDecimal Method

Definition

Converts this BigDecimal to a java.math.BigDecimal.

[Android.Runtime.Register("toBigDecimal", "()Ljava/math/BigDecimal;", "GetToBigDecimalHandler", ApiSince=24)]
public virtual Java.Math.BigDecimal? ToBigDecimal ();
[<Android.Runtime.Register("toBigDecimal", "()Ljava/math/BigDecimal;", "GetToBigDecimalHandler", ApiSince=24)>]
abstract member ToBigDecimal : unit -> Java.Math.BigDecimal
override this.ToBigDecimal : unit -> Java.Math.BigDecimal

Returns

The java.math.BigDecimal equal in value to this BigDecimal.

Attributes

Remarks

Converts this BigDecimal to a java.math.BigDecimal.

This is an exact conversion; the result is the same as if the BigDecimal were formatted as a plain number without any rounding or exponent and then the java.math.BigDecimal(java.lang.String) constructor were used to construct the result.

(Note: this method is provided only in the android.icu.math version of the BigDecimal class. It would not be present in a java.math version.)

Java documentation for android.icu.math.BigDecimal.toBigDecimal().

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