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