2017-11-16 5 views

Antwort

3

Verwendung wie folgt:

private val currencyFormat = NumberFormat.getCurrencyInstance() 
+1

Dank , löse mein Problem. –

+0

Sie sind herzlich willkommen! :-) – Gaurav

2

Es kann über durchgeführt werden:

val currencyFormat = NumberFormat.getCurrencyInstance(); 
+1

Danke zu beantworten. –

1

Verwendung unter Methode wird es Währung Format des aktuellen Standardformat locale zurück:

fun currencyFormat() : NumberFormat = NumberFormat.getCurrencyInstance() 
+0

Beschreiben Sie etwas über den Code –

+0

Danke, ich habe meine Antwort bearbeitet! –

+0

Danke, interessante Möglichkeit, currencyFormat zu nennen. –