Converts a number to a decimal mark formatted string.
Use Number.prototype.toLocaleString()
to convert the numbre to decimal mark format.
代码片段
const toDecimalMark = num => num.toLocaleString('en-US');
使用样例
toDecimalMark(12305030388.9087); // "12,305,030,388.909"