Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am getting an error while converting int to bigdecimal so am not able to use compareTo operator. Please help to get rid of it. Please refer below e.g.
row1.Dest_NBR.compareTo(BigDicimal(-1))
Error : The method BigDecimal(int) is undefined for the type
@rohit1804 ,if row1.Dest_NBR column is big decimal then it will work below way to filter the data.
row1.Dest_NBR==new BigDecimal("-1")
if is it sting means convert below way.
new BigDecimal(row1.Dest_NBR.equals("-1))
@rohit1804 ,what is the data type of row1.Dest_NBR column?
@rohit1804 ,if row1.Dest_NBR column is big decimal then it will work below way to filter the data.
row1.Dest_NBR==new BigDecimal("-1")
if is it sting means convert below way.
new BigDecimal(row1.Dest_NBR.equals("-1))