mirror of
https://github.com/hmalik144/EasyCC_Master.git
synced 2026-10-30 07:26:43 +00:00
java.lang.IllegalArgumentException
at java.util.Currency.getInstance(Currency.java:386) error fixed
This commit is contained in:
1 parent
73da4bc103
commit
13858e58a1
1 file changed
-1
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user