How to print a double with two decimals in Android? [duplicate] December 23, 2022 by Tarik yourTextView.setText(String.format("Value of a: %.2f", a));