mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2026-01-31 02:41:47 +00:00
java.lang.IllegalArgumentException
at java.util.Currency.getInstance(Currency.java:386) error fixed
This commit is contained in:
@@ -22,7 +22,6 @@ fun convertPairsListToString(s1: String, s2: String): String =
|
||||
fun Double.toTwoDp() = run {
|
||||
try {
|
||||
val df = DecimalFormat("0.00")
|
||||
df.currency = Currency.getInstance(Locale.getDefault())
|
||||
valueOf(df.format(this))
|
||||
}catch (e: NumberFormatException){
|
||||
e.printStackTrace()
|
||||
|
||||
Reference in New Issue
Block a user