java.lang.IllegalArgumentException

at java.util.Currency.getInstance(Currency.java:386)

error fixed
This commit is contained in:
2020-05-17 19:31:37 +01:00
parent 73da4bc103
commit 13858e58a1

View File

@@ -22,7 +22,6 @@ fun convertPairsListToString(s1: String, s2: String): String =
fun Double.toTwoDp() = run { fun Double.toTwoDp() = run {
try { try {
val df = DecimalFormat("0.00") val df = DecimalFormat("0.00")
df.currency = Currency.getInstance(Locale.getDefault())
valueOf(df.format(this)) valueOf(df.format(this))
}catch (e: NumberFormatException){ }catch (e: NumberFormatException){
e.printStackTrace() e.printStackTrace()