"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatDisplayValueWithManWon = exports.formatRealValueWithManWon = void 0;
const utils_1 = require("../../../utils");
const 만 = 10000;
const formatRealValueWithManWon = (val) => {
    const numeric = Number((0, utils_1.extractNumber)(val));
    if (!isNaN(numeric)) {
        return (Number((0, utils_1.extractNumber)(val)) * 만).toString();
    }
    return '';
};
exports.formatRealValueWithManWon = formatRealValueWithManWon;
const formatDisplayValueWithManWon = (val) => {
    const extracted = Number((0, utils_1.extractNumber)(val)) / 만;
    const newValue = extracted ? extracted.toString() : '';
    return newValue ? (0, utils_1.formatKoreaCurrency)(newValue) : newValue;
};
exports.formatDisplayValueWithManWon = formatDisplayValueWithManWon;
