Jump to content

Template:Lakh/doc

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by William Avery (talk | contribs) at 11:20, 15 August 2022 (Remove link to deleted template). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This template is used to convert the Indian unit lakh into standard Western notation. This template uses the {{formatnum:}} magic word.

Usage

{{lakh | ''n'' | r= | nosep= }}
  • n is the number of lakh
  • r – Option to remove separators from input numbers: 1,000 → 1000
  • nosep – Option to remove separators from the output result

These two parameters correspond to the R and NOSEP options for the {{formatnum:}} parser function.

Examples

{{lakh | 1}}: 100,000

{{lakh | 1000 | nosep=1}}: 100000000

{{lakh | 1,000 | r=1}}: 100,000,000

{{lakh | 1,000 | r=1 | nosep=1}}: 100000000

Combine with {{Number to words}}: {{number to words|{{lakh | 100 | nosep=1}}}}: ten million

See also