Share via


BigDecimal.IntValue Method

Definition

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.

Applies to