Javadoc
Converts this
Decimal128 to a
int. This conversion is analogous to the narrowing primitive conversion from
double to
int as defined in The Java™ Language Specification: any fractional part of this
Decimal128 will be discarded, and if the resulting integral value is too big to fit in a
int, only the
low-order 32 bits are returned. Note that this conversion can lose information about the overall magnitude and precision of this
Decimal128 value as well as return a result with the opposite sign. Note that
#NEGATIVE_ZERO is converted to
0.