Spec-Zone.ru › Angular

formatPercent

Formats a number as a percentage according to locale rules.

formatNumberDecimalPipeInternationalization (i18n) Guide

API

function formatPercent(
  value: number,
  locale: string,
  digitsInfo?: string | undefined,
): string;
@paramvaluenumber

The number to format.

@paramlocalestring

A locale code for the locale format rules to use.

@paramdigitsInfostring | undefined

Decimal representation options, specified by a string in the following format: {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}. See DecimalPipe for more details.

@returnsstring

The formatted percentage value.

Description

Formats a number as a percentage according to locale rules.


Exported by

  • CommonModule

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/common/formatPercent

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API