ciao!

penso che quello che ti serve sia String.format
tipo una cosa del genere:
codice:
String.format("%.12f", myFloatNumber);