android round double to 2 decimal

Java
String.format("%.2f", d)String stringDecimal = String.format("%.2f, d");
Source

Also in Java: