convert to double with two decimal places in java android code example Example: android java convert double to 2 decimal places String stringDecimal = String.format("%.2f, d");