Module:Convert to eastern arabic numerals/doc: Difference between revisions
Appearance
hp>Nickps Added the page to Category:Module documentation pages |
Humanipedia (talk | contribs) m 1 revision imported |
(No difference)
|
Latest revision as of 21:10, 3 February 2025
This module converts from Western Arabic numerals (i.e. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9) to Eastern Arabic numerals (i.e. ٩ ,٨ ,٧ ,٦ ,٥ ,٤ ,٣ ,٢ ,١ ,٠)
Usage[edit source]
From wikitext[edit source]
This should generally be invoked from the corresponding template {{Eastern arabic numerals}}; however it make be directly invoked as well
{{#invoke:Convert to eastern arabic numerals|convert|3.1415}}
From Lua[edit source]
Load the module with the following code:
<syntaxhighlight lang="lua"> local mConvertNumerals = require('Module:Convert to eastern arabic numerals') </syntaxhighlight>
And then from there you can convert using the _convert
function.
<syntaxhighlight lang="lua"> mConvertNumerals._convert({"3.1415"}) </syntaxhighlight>