BigDecimal.ToBigInteger 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.
Converts this BigDecimal
to a java.math.BigInteger
.
[Android.Runtime.Register("toBigInteger", "()Ljava/math/BigInteger;", "GetToBigIntegerHandler", ApiSince=24)]
public virtual Java.Math.BigInteger? ToBigInteger ();
[<Android.Runtime.Register("toBigInteger", "()Ljava/math/BigInteger;", "GetToBigIntegerHandler", ApiSince=24)>]
abstract member ToBigInteger : unit -> Java.Math.BigInteger
override this.ToBigInteger : unit -> Java.Math.BigInteger
Returns
The java.math.BigInteger
equal in value to the integer part of this BigDecimal
.
- Attributes
Remarks
Converts this BigDecimal
to a java.math.BigInteger
.
Any decimal part is truncated (discarded). If an exception is desired should the decimal part be non-zero, use #toBigIntegerExact()
.
Java documentation for android.icu.math.BigDecimal.toBigInteger()
.
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.