Skip to Content
0
Former Member
Jul 20, 2009 at 10:50 AM

Very easy question - BigDecimal to Integer conversion

24 Views

Hi Experts,

Following statement is not working. wdContext.nodeI_Catsdbcomm().getI_CatsdbcommElementAt(iCount).getCatshours() returns BigDecimal. We can not add int and BigDecimal. For resolving the issue I need to convert wdContext.nodeI_Catsdbcomm().getI_CatsdbcommElementAt(iCount).getCatshours() into integer. How we can do so?

Regards,

Gary

	int sumHours=0;

	  sumHours = sumHours + wdContext.nodeI_Catsdbcomm().getI_CatsdbcommElementAt(iCount).getCatshours();