[resolved] Big Decimal to Integer conversion

One Star

[resolved] Big Decimal to Integer conversion

Hi,
Is there anyone know how to convert data type from Big Decimal to Integer? I cant use Integer.parseInt(BigDecimal_value) since the argument is for string only. I try to search in the forum but I can only see conversion from Integer to Big Decimal.
Regards,
Mohd Fuzaimi
One Star

Re: [resolved] Big Decimal to Integer conversion

Hi Mohd Fuzaimi
The expression is as folow.
row1.newColumn.intValue()         //The type of newColumn is BigDecimal.

Regards,
Pedro
One Star

Re: [resolved] Big Decimal to Integer conversion

Thanks pedro it works. I am also found another solution just now which is using tConvertType which can change any datatype according to what I want.
Regards,
Mohd Fuzaimi
One Star

Re: [resolved] Big Decimal to Integer conversion

Thanks the intValue() works Smiley Happy