/// 保留一位小数
class func afterDecimals(value: Int) -> String {
let intVal = value / 10000
let doubleVal = value % 10000
let suffixValue = doubleVal / 1000
let newValue = "\(intVal)" + "." + "\(suffixValue)" + "w"
return newValue
}
/// 保留两位小数
class func afterTwoDecimals(value: Int) -> String {
let intVal = value / 10000
let doubleVal = value % 10000
let suffixValue = doubleVal / 100
let newValue = "\(intVal)" + "." + "\(suffixValue)" + "w"
return newValue
}