1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.formatNumber = formatNumber;
|
7 |
|
8 | var _toBn = require("../bn/toBn");
|
9 |
|
10 | var _formatDecimal = require("./formatDecimal");
|
11 |
|
12 | // Copyright 2017-2022 @polkadot/util authors & contributors
|
13 | // SPDX-License-Identifier: Apache-2.0
|
14 |
|
15 | /**
|
16 | * @name formatNumber
|
17 | * @description Formats a number into string format with thousand seperators
|
18 | */
|
19 | function formatNumber(value) {
|
20 | return (0, _formatDecimal.formatDecimal)((0, _toBn.bnToBn)(value).toString());
|
21 | } |
\ | No newline at end of file |