DecimalFormat format = new DecimalFormat("0.0"); String km = "567.92736478"; String a = format.format(new BigDecimal(km));