例如:3.25,先将小数点向右移动两位,再加上百分号。
//小数let frVal = 0.008//小数点右移2位let percent = frVal * 100println("\(percent)%" )
就这样转