"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NumberExtensions = exports.WrapInParentheses = exports.abbreviateNumber = void 0;
function abbreviateNumber(numberToAbbreviate) {
    let str = '';
    if (numberToAbbreviate >= 1000000000) {
        str = (numberToAbbreviate / 1000000000).toFixed(1) + 'B';
    }
    else if (numberToAbbreviate >= 1000000) {
        str = (numberToAbbreviate / 1000000).toFixed(1) + 'M';
    }
    else if (numberToAbbreviate >= 1000) {
        str = (numberToAbbreviate / 1000).toFixed(1) + 'K';
    }
    else {
        str = numberToAbbreviate.toString();
    }
    return str;
}
exports.abbreviateNumber = abbreviateNumber;
function WrapInParentheses(numberToWrap) {
    return ' (' + numberToWrap + ')';
}
exports.WrapInParentheses = WrapInParentheses;
exports.NumberExtensions = {
    abbreviateNumber,
    WrapInParentheses,
};
exports.default = exports.NumberExtensions;
