Android – Round to 2 decimal places [duplicate] November 12, 2022 by Tarik You can use String.format("%.2f", d), your double will be rounded automatically.