BigDecimal.IntValue 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 an int
.
[Android.Runtime.Register("intValue", "()I", "GetIntValueHandler", ApiSince=24)]
public override int IntValue ();
[<Android.Runtime.Register("intValue", "()I", "GetIntValueHandler", ApiSince=24)>]
override this.IntValue : unit -> int
Returns
An int
converted from this
, truncated and decapitated if necessary.
- Attributes
Remarks
Converts this BigDecimal
to an int
. If the BigDecimal
has a non-zero decimal part it is discarded. If the BigDecimal
is out of the possible range for an int
(32-bit signed integer) result then only the low-order 32 bits are used. (That is, the number may be decapitated.) To avoid unexpected errors when these conditions occur, use the #intValueExact
method.
Java documentation for android.icu.math.BigDecimal.intValue()
.
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.