ASP中有专门的百分数函数:FormatPercent所以function toPercent(data) toPercent = FormatPercent(data, 2) '2表示结果保留两位小数end function