js将小数转换为百分数

function toPercent(point){
                if (point==0) {
                return 0;
            }
            var str=Number(point*100).toFixed();
            str+="%";
            return str;
        }

转自:https://blog.csdn.net/cx15733896285/article/details/80913791