let num: number = 100.001;
let str: string = num.toFixed(2);

 

记录一下以防忘记~

相关文章: