formatNumber
함수
안정화
Formats a number as text, with group sizing, separator, and other parameters based on the locale.
API
function formatNumber(
value: number,
locale: string,
digitsInfo?: string | undefined,
): string;@paramvalue
numberThe number to format.
@paramlocale
stringA locale code for the locale format rules to use.
@paramdigitsInfo
string | undefinedDecimal representation options, specified by a string in the following format:
{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}. See DecimalPipe for more details.
@returns
stringThe formatted text string.
설명
Formats a number as text, with group sizing, separator, and other parameters based on the locale.
다음 모듈에서 내보냄
상세 내용으로 이동