<translate> </translate>

This template formats a number in the local format (local numerals, local thousands separator, decimal separator and the pattern of separators [some languages for example have a ten-thousands separator]) of the user's preferred language.

== <translate> Usage</translate> ==


{{Formatnum |1= |2= |sep= |prec= }}

Template parameters

ParameterDescriptionDefaultStatus
1
number
emptyrequired
2
lang
{{int:lang}}optional
sepemptyoptional
precemptyoptional
Lua error in एकक:Autotranslate at line 72: No fallback page found for autotranslate (base=Template:TemplateDataInfo/i18n, lang=⧼lang⧽).

This template formats a number in the local format (local numerals, local thousands separator, decimal separator and the pattern of separators [some languages for example have a ten-thousands separator]) of the user's preferred language.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
1 number

Linerequired
2 lang

Default
{{int:lang}}
Lineoptional
prec

Numberoptional
sep

Lineoptional

=== <translate> Additional information</translate> === <translate> The template is intended to be used in the following namespaces:</translate> <translate> the Template namespace</translate>

<translate> The template is intended to be used by the following user groups:</translate> <translate> all users</translate>

<translate> Relies on:</translate>
Module:Formatnum == <translate> ⧼Seealso⧽</translate> == <translate> </translate>

{{Formatnum4}} for numbers 4 digits or shorter.

== <translate> Localization</translate> ==

<translate> This template is not intended to be localized.</translate>

<translate> </translate>

Internationalization is made using MediaWiki's built-in number formatter (except for some languages not yet supported in MediaWiki).

Examples

  • {{formatnum|100000}} → 100000
  • {{formatnum|100000|sep=0}} → 100000
  • {{formatnum|100000|sep=no}} → 100000
  • {{formatnum|12345.67}} → 12345.67
  • {{formatnum|-102}} → -102
  • {{formatnum|1234567890|ar}} → ١٬٢٣٤٬٥٦٧٬٨٩٠

Remark

  • It is not compatible with tables sorting. The value is not detected as a number.
"https://gom.wikipedia.org/w/index.php?title=सांचो:Formatnum/doc&oldid=211591" चे कडल्यान परतून मेळयलें