我正在处理大数字,我现在正在像这样格式化
{{total | number:'1.0-0'}}
结果是 45,986,592。我需要将数字格式化为只有数百万,然后只有一位数字,所以45.9
45.9
我怎样才能实现这个目标?
pipe angular
angular ×1
pipe ×1