/**
 * Financial formatting utilities
 */
/**
 * Format a number as currency
 */
export function format_currency(value, symbol = "$", decimal_places = 2) {
    const formatted = value.toFixed(decimal_places);
    const parts = formatted.split(".");
    parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    return `${symbol}${parts.join(".")}`;
}
/**
 * Format a number as percentage
 */
export function format_percentage(value, decimal_places = 2, suffix = "%") {
    return `${value.toFixed(decimal_places)}${suffix}`;
}
//# sourceMappingURL=financial_format.js.map