W3cubDocs

/Angular

formatPercent

Formats a number as a percentage according to locale rules.

API

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

Description

Formats a number as a percentage according to locale rules.


Exported by

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