fengxiang
2018-05-28 f1f78b9bae93fe9a07cc3ebdc743eb71ac78c29e
src/app/business/services/util/tools.service.ts
@@ -28,4 +28,13 @@
                 }
                );
      }
      public static toThousands(num: string): string {
        var num = (num || 0).toString(), result = '';
        while (num.length > 3) {
            result = ',' + num.slice(-3) + result;
            num = num.slice(0, num.length - 3);
        }
        if (num) { result = num + result; }
        return result;
    }
}