Module:NumberSpell/doc: Difference between revisions

From Thetacola Wiki
Jump to navigationJump to search
en>Adem20
m (template)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:23, 15 August 2022

This module takes a number and returns the equivalent English word. For example, "2" becomes "two" and "79" becomes "seventy-nine". Numbers must be integers between 0 and 100.

Usage[edit source]

{{#invoke:NumberSpell|main|number}}

Examples[edit source]

  • {{#invoke:NumberSpell|main|8}} → eight
  • {{#invoke:NumberSpell|main|56}} → fifty-six
  • {{#invoke:NumberSpell|main|101}}Error: input must be an integer between 0 and 100