const n = 12000; console.log((n/1000).toFixed(3)); # 12.000 console.log(parseFloat((n/1000).toFixed(3))); # 12
No comments:
Post a Comment