神岛 API 文档 - ArenaPro版
    Preparing search index...

    Interface NumberFormatOptions

    Intl.NumberFormat 对象提供配置选项的接口。

    An interface that provides configuration options for Intl.NumberFormat objects.

    interface NumberFormatOptions {
        currency?: string;
        currencyDisplay?: keyof NumberFormatOptionsCurrencyDisplayRegistry;
        localeMatcher?: "lookup" | "best fit";
        maximumFractionDigits?: number;
        maximumSignificantDigits?: number;
        minimumFractionDigits?: number;
        minimumIntegerDigits?: number;
        minimumSignificantDigits?: number;
        style?: keyof NumberFormatOptionsStyleRegistry;
        useGrouping?: boolean;
    }
    Index

    Properties

    currency?: string

    在货币格式化中使用的货币。

    The currency to use in currency formatting.

    currencyDisplay?: keyof NumberFormatOptionsCurrencyDisplayRegistry

    如何显示货币格式化中的货币。

    How to display the currency in currency formatting.

    localeMatcher?: "lookup" | "best fit"

    要使用的区域匹配算法。

    The locale matching algorithm to use.

    maximumFractionDigits?: number

    要使用的最大小数位数。

    The maximum number of fraction digits to use.

    maximumSignificantDigits?: number

    要使用的最大有效数字位数。

    The maximum number of significant digits to use.

    minimumFractionDigits?: number

    要使用的最小小数位数。

    The minimum number of fraction digits to use.

    minimumIntegerDigits?: number

    要使用的最小整数位数。

    The minimum number of integer digits to use.

    minimumSignificantDigits?: number

    要使用的最小有效数字位数。

    The minimum number of significant digits to use.

    style?: keyof NumberFormatOptionsStyleRegistry

    格式化样式。

    The formatting style.

    useGrouping?: boolean

    是否使用分组分隔符,例如千位分隔符。

    Whether to use grouping separators, such as thousands separators.