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")]
public override int IntValue ();
[<Android.Runtime.Register("intValue", "()I", "GetIntValueHandler")>]
override this.IntValue : unit -> int
Returns
this BigDecimal
converted to an int
.
- Attributes
Remarks
Converts this BigDecimal
to an int
. This conversion is analogous to the narrowing primitive conversion from double
to short
as defined in <cite>The Java Language Specification</cite>: any fractional part of this BigDecimal
will be discarded, and if the resulting "BigInteger
" is too big to fit in an int
, only the low-order 32 bits are returned. Note that this conversion can lose information about the overall magnitude and precision of this BigDecimal
value as well as return a result with the opposite sign.
Java documentation for java.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.