Normal
- String.format("%.2f", variable)- new DecimalFormat("0.00")- NumberFormat.getInstance(Locale.GERMAN) erstmal in einer Variablen speichern,dann setMaximumFractionDigits() und ähnliches aufrufen,und dann erst format() ausführenbzw. einfach nach setMaximumFractionDigits im Internet suchen, da werden doch wohl Beispiele kommn
- String.format("%.2f", variable)
- new DecimalFormat("0.00")
- NumberFormat.getInstance(Locale.GERMAN) erstmal in einer Variablen speichern,
dann setMaximumFractionDigits() und ähnliches aufrufen,
und dann erst format() ausführen
bzw. einfach nach setMaximumFractionDigits im Internet suchen, da werden doch wohl Beispiele kommn