yourTextView.setText(String.format("Value of a: %.2f", a));