保留两位小数

parseFloat(Math.round($scope.sbjs)/100).toFixed(2) ;//四舍五入,浮点型,保留两位小数

  

原文地址:https://www.cnblogs.com/chenlw/p/9585038.html