code: function formatPercent(value, locale, digitsInfo) {
      var format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);
      var pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
      var res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);
      return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));
  }
docs: @ngModule CommonModule
  @description
  
  Formats a number as a percentage according to locale rules.
  
  Where:
  - `value` is a number.
  - `locale` is a `string` defining the locale to use.
  - `digitInfo` See {@link DecimalPipe} for more details.