@polkadot/util
Version:
A collection of useful utilities for @polkadot
16 lines (12 loc) • 417 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.formatNumber = formatNumber;
var _toBn = require("../bn/toBn");
var _formatDecimal = require("./formatDecimal");
// Copyright 2017-2022 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
function formatNumber(value) {
return (0, _formatDecimal.formatDecimal)((0, _toBn.bnToBn)(value).toString());
}