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