decimal 2 places in android string code example Example: android round double to 2 decimal String.format("%.2f", d)