hi.. what i want, the field in the entity and model class are of bigdecimal types:-
i want to do some calcultion in bigdecimal and finally store the value after using the Math.ceil() method.

iam not able to covert or type the bigdecimal into some double values first and then trying to store into database.

for e.g;-

bigdecimal requesteQty;

requestedQty = < some value calculated in bigdecimal>

and then trying to store it in Math.ceil(requestedQty )

it gives the following error :-
"This method Math.ceil(dobule) is not applicable for the bigdecimal value.

please help me..
thank you

Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."

The problem must be in the "NumberUtil.divideBigDecimal()" routine, or the "irDetail.getSentToPrQty()" or "part.getUomConversion()" methods aren't returning what you think they are. The solution you've been given is correct; running the following code gives "2" as the final answer: