// 19.11.21 세자리 콤마
export const comma = (num: string) => {
    let len;
    let point;
    let str;

    num = num + '';
    point = num.length % 3 ;
    len = num.length;

    str = num.substring(0, point);
    while (point < len) {
        if (str !== '') {str += ','; }
        str += num.substring(point, point + 3);
        point += 3;
    }

    return str;
};
