Background I am getting a scientific value (with exponential). I need to round off this to normal decimal value with two decimal points with double data type
I have done as below
DecimalFormat formatter = new DecimalFormat("0.00");
x.setByteFor95(Double.valueOf(formatter.format(x.getSrcToDestBytes())));
I get the below value while debugging
formatter.format(x.getSrcToDest95PercentileBytes())
16502416.10
But when converting to double it become scientific value again
Double.valueOf(formatter.format(x.getSrcToDest95PercentileBytes()))
1.65024161E7
How to get the double type value with two decimal places? I need to get double with two decimal places at the end