dev

It is used in:

This module formats numbers based on the formatting rules of each language.

Installation

Usage

{{formatnum|1=value|2=lang|prec=prec|sep=compact}}

Parameters

The lang named parameter is also a supported alias of the 2nd parameter.
The value "arabic-indic" is also currently supported as an alias, and replaced by a supported language code.

Note:

This template internally uses {{#invoke:Formatnum|main}} to pass indirectly its parameters to the main() function of this module in the parent frame.

formatNum()

This function converts an value into a localized number.

Usage:

formatted_string = formatnum.formatNum(value, lang, prec, compact)

Parameters:

Examples:

Limitations:

Text above can be found here (edit)