I have an issue with Big decimal variable. I want to divide it, and the problem is that the deviation results is not correct. the variable called bvalue = 405000000 and I want to divide it by 1000000. the problem that I am facing is that the response is 1. and not 405 as expected. I used
bvalue = bvalue.divide(bvalue,1000000,RoundingMode.CEILING);
how can I divide big decimal correctly? by 1000000 regards