|
|
@@ -3,6 +3,7 @@ package cn.muchinfo.rma.global
|
|
|
import cn.muchinfo.rma.R
|
|
|
import cn.muchinfo.rma.view.autoWidget.utils.NumberUtils
|
|
|
import com.blankj.utilcode.util.TimeUtils
|
|
|
+import java.text.NumberFormat
|
|
|
import java.text.SimpleDateFormat
|
|
|
import java.util.*
|
|
|
|
|
|
@@ -202,7 +203,12 @@ fun String.toPercentage2() : String{
|
|
|
if (this.isEmpty()){
|
|
|
return "--"
|
|
|
}
|
|
|
- var values = toDouble().times(100).toString()
|
|
|
+
|
|
|
+ var nf = NumberFormat.getInstance()
|
|
|
+ nf.maximumFractionDigits = 20
|
|
|
+ nf.isGroupingUsed = false
|
|
|
+
|
|
|
+ var values = nf.format(toDouble().times(100)).toString()
|
|
|
var list = values.split(".")
|
|
|
|
|
|
if(list.size == 2){
|