code: function formatNumber(value, locale, digitsInfo) {
      var format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);
      var pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
      return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);
  }
docs: @ngModule CommonModule
  @description
  
  Formats a number as text. Group sizing and separator and other locale-specific
  configurations are based on the locale.
  
  Where:
  - `value` is a number.
  - `locale` is a `string` defining the locale to use.
  - `digitInfo` See {@link DecimalPipe} for more details.