I have a double that I want to keep only 3 decimal places but without applying any rounding at all.
E.g. 92.36699
should be 92.366
I tried the following:
DecimalFormat nf= new DecimalFormat("#0.000");
String number = nf.format(originalNumber);
But this results in 92.367
How can I do what I need?