if your XMLdata.get("XMLField")
value is float
u can do the following code
String finalValue = String.format(
"%.2f", XMLdata.get("XMLField"));
TextView.setText(finalValue + " mm");
if your XMLdata.get("XMLField")
is String
convert it into float
do the above method.