@angular/common

formatNumber

function

Formats a number as text, with group sizing, separator, and other parameters based on the locale.

formatNumber(
value: number,
locale: string,
digitsInfo?: string
): string;
Jump to details