Jump to content

Module:NumberSpell/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 20:08, 13 January 2014 (update after page move). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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

Examples

  • {{#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