toInt

fun toInt(): Int

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.

Return

this BigDecimal converted to an int.