I want to round of a double value to the immediate next number.
Tried working with Math.ceil
and Math.round
but it didnt help.
Below is the condition and code:
Double totalAsset = Util.convertToDouble(dataObject) * calculus;
// 62072560. * 06433535204605706 = 399345.99999999994
System.out.println(totalAsset.longValue());
But i get 399345
whereas it should be 399346
.