Spec-Zone.ru › Angular

formatNumber

Formats a number as text, with group sizing, separator, and other parameters based on the locale.

Internationalization (i18n) Guide

API

function formatNumber(
  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 text string.

Description

Formats a number as text, with group sizing, separator, and other parameters based on the locale.


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/formatNumber

Spec-Zone.ru

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