myRandomNumGenerator = new Random();
loadedValue = myRandomNumGenerator.nextDouble();
DecimalFormat oneDigit = new DecimalFormat("#,##0.0");//format to 1 decimal place
System.out.println(oneDigit.format(anyVariable)); //generic usage
loadedValue = Double.valueOf(oneDigit.format(loadedValue));//specific usage posted in comments