GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • formatNumber
  • DecimalPipe
  • Internationalization (i18n) Guide

This view

  • Original page
  • New address

GeezerVison is showing angular.dev — formatPercent • Angular

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
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.