Skip to content

Function: useBigNumberFormatter()

ts
function useBigNumberFormatter(locale: string): {
  format: (
    value: string | number | bigint | Big,
    formatString: string,
  ) => string;
  formatter: BigNumberFormatter;
};

Vue composable for BigNumberFormatter

Parameters

ParameterTypeDefault value
localestring'en-US'

Returns

ts
{
  format: (value: string | number | bigint | Big, formatString: string) =>
    string;
  formatter: BigNumberFormatter;
}
NameType
format()(value: string | number | bigint | Big, formatString: string) => string
formatterBigNumberFormatter