
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ANumberSpell</id>
	<title>Module:NumberSpell - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ANumberSpell"/>
	<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;action=history"/>
	<updated>2026-06-26T09:37:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118073&amp;oldid=prev</id>
		<title>Ookami: 4 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118073&amp;oldid=prev"/>
		<updated>2020-09-03T23:06:18Z</updated>

		<summary type="html">&lt;p&gt;4 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:06, 3 September 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Ookami</name></author>
	</entry>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118072&amp;oldid=prev</id>
		<title>meta&gt;Mr. Stradivarius: Protected Module:NumberSpell: High-risk Lua module: used in Module:TimeAgo ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118072&amp;oldid=prev"/>
		<updated>2014-01-28T12:43:00Z</updated>

		<summary type="html">&lt;p&gt;Protected Module:NumberSpell: &lt;a href=&quot;https://en.wikipedia.org/wiki/Lua/Modules&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Lua/Modules&quot;&gt;High-risk Lua module&lt;/a&gt;: used in &lt;a href=&quot;/index.php?title=Module:TimeAgo&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:TimeAgo (page does not exist)&quot;&gt;Module:TimeAgo&lt;/a&gt; ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:43, 28 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>meta&gt;Mr. Stradivarius</name></author>
	</entry>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118071&amp;oldid=prev</id>
		<title>meta&gt;Mr. Stradivarius: Mr. Stradivarius moved page Module:NumberWrite to Module:NumberSpell without leaving a redirect: snappier name</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118071&amp;oldid=prev"/>
		<updated>2014-01-13T19:58:19Z</updated>

		<summary type="html">&lt;p&gt;Mr. Stradivarius moved page &lt;a href=&quot;/index.php?title=Module:NumberWrite&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:NumberWrite (page does not exist)&quot;&gt;Module:NumberWrite&lt;/a&gt; to &lt;a href=&quot;/index.php?title=Module:NumberSpell&quot; title=&quot;Module:NumberSpell&quot;&gt;Module:NumberSpell&lt;/a&gt; without leaving a redirect: snappier name&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:58, 13 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>meta&gt;Mr. Stradivarius</name></author>
	</entry>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118070&amp;oldid=prev</id>
		<title>meta&gt;Mr. Stradivarius: add 100, because why not?</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118070&amp;oldid=prev"/>
		<updated>2014-01-13T19:23:16Z</updated>

		<summary type="html">&lt;p&gt;add 100, because why not?&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:23, 13 January 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local p = {}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local p = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local max = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;99 &lt;/del&gt;-- The maximum number that can be parsed.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local max = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;100 &lt;/ins&gt;-- The maximum number that can be parsed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local ones = {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local ones = {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	[70] = &amp;#039;seventy&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	[70] = &amp;#039;seventy&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	[80] = &amp;#039;eighty&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	[80] = &amp;#039;eighty&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	[90] = &#039;ninety&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	[90] = &#039;ninety&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	[100] = &#039;one hundred&lt;/ins&gt;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>meta&gt;Mr. Stradivarius</name></author>
	</entry>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118069&amp;oldid=prev</id>
		<title>meta&gt;Mr. Stradivarius: create a module that converts numbers into their written English form - can cope with numbers from 0 to 99</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Module:NumberSpell&amp;diff=118069&amp;oldid=prev"/>
		<updated>2014-01-13T19:09:00Z</updated>

		<summary type="html">&lt;p&gt;create a module that converts numbers into their written English form - can cope with numbers from 0 to 99&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module converts a number into its written English form.&lt;br /&gt;
-- For example, &amp;quot;2&amp;quot; becomes &amp;quot;two&amp;quot;, and &amp;quot;79&amp;quot; becomes &amp;quot;seventy-nine&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local max = 99 -- The maximum number that can be parsed.&lt;br /&gt;
&lt;br /&gt;
local ones = {&lt;br /&gt;
	[0] = &amp;#039;zero&amp;#039;,&lt;br /&gt;
	[1] = &amp;#039;one&amp;#039;,&lt;br /&gt;
	[2] = &amp;#039;two&amp;#039;,&lt;br /&gt;
	[3] = &amp;#039;three&amp;#039;,&lt;br /&gt;
	[4] = &amp;#039;four&amp;#039;,&lt;br /&gt;
	[5] = &amp;#039;five&amp;#039;,&lt;br /&gt;
	[6] = &amp;#039;six&amp;#039;,&lt;br /&gt;
	[7] = &amp;#039;seven&amp;#039;,&lt;br /&gt;
	[8] = &amp;#039;eight&amp;#039;,&lt;br /&gt;
	[9] = &amp;#039;nine&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local specials = {&lt;br /&gt;
	[10] = &amp;#039;ten&amp;#039;,&lt;br /&gt;
	[11] = &amp;#039;eleven&amp;#039;,&lt;br /&gt;
	[12] = &amp;#039;twelve&amp;#039;,&lt;br /&gt;
	[13] = &amp;#039;thirteen&amp;#039;,&lt;br /&gt;
	[15] = &amp;#039;fifteen&amp;#039;,&lt;br /&gt;
	[18] = &amp;#039;eighteen&amp;#039;,&lt;br /&gt;
	[20] = &amp;#039;twenty&amp;#039;,&lt;br /&gt;
	[30] = &amp;#039;thirty&amp;#039;,&lt;br /&gt;
	[40] = &amp;#039;forty&amp;#039;,&lt;br /&gt;
	[50] = &amp;#039;fifty&amp;#039;,&lt;br /&gt;
	[60] = &amp;#039;sixty&amp;#039;,&lt;br /&gt;
	[70] = &amp;#039;seventy&amp;#039;,&lt;br /&gt;
	[80] = &amp;#039;eighty&amp;#039;,&lt;br /&gt;
	[90] = &amp;#039;ninety&amp;#039;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local formatRules = {&lt;br /&gt;
	{num = 90, rule = &amp;#039;ninety-%s&amp;#039;},&lt;br /&gt;
	{num = 80, rule = &amp;#039;eighty-%s&amp;#039;},&lt;br /&gt;
	{num = 70, rule = &amp;#039;seventy-%s&amp;#039;},&lt;br /&gt;
	{num = 60, rule = &amp;#039;sixty-%s&amp;#039;},&lt;br /&gt;
	{num = 50, rule = &amp;#039;fifty-%s&amp;#039;},&lt;br /&gt;
	{num = 40, rule = &amp;#039;forty-%s&amp;#039;},&lt;br /&gt;
	{num = 30, rule = &amp;#039;thirty-%s&amp;#039;},&lt;br /&gt;
	{num = 20, rule = &amp;#039;twenty-%s&amp;#039;},&lt;br /&gt;
	{num = 10, rule = &amp;#039;%steen&amp;#039;}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local num = tonumber(args[1])&lt;br /&gt;
	local success, result = pcall(p._main, num)&lt;br /&gt;
	if success then&lt;br /&gt;
		return result&lt;br /&gt;
	else&lt;br /&gt;
		return string.format(&amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;Error: %s&amp;lt;/strong&amp;gt;&amp;#039;, result) -- &amp;quot;result&amp;quot; is the error message.&lt;br /&gt;
	end&lt;br /&gt;
	return p._main(num)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(num)&lt;br /&gt;
	if type(num) ~= &amp;#039;number&amp;#039; or math.floor(num) ~= num or num &amp;lt; 0 or num &amp;gt; max then&lt;br /&gt;
		error(&amp;#039;input must be an integer between 0 and &amp;#039; .. tostring(max), 2)&lt;br /&gt;
	end&lt;br /&gt;
	-- Check for numbers from 0 to 9.&lt;br /&gt;
	local onesVal = ones[num]&lt;br /&gt;
	if onesVal then&lt;br /&gt;
		return onesVal&lt;br /&gt;
	end&lt;br /&gt;
	-- Check for special numbers.&lt;br /&gt;
	local specialVal = specials[num]&lt;br /&gt;
	if specialVal then&lt;br /&gt;
		return specialVal&lt;br /&gt;
	end&lt;br /&gt;
	-- Construct the number from its format rule.&lt;br /&gt;
	onesVal = ones[num % 10]&lt;br /&gt;
	if not onesVal then&lt;br /&gt;
		error(&amp;#039;Unexpected error parsing input &amp;#039; .. tostring(num))&lt;br /&gt;
	end&lt;br /&gt;
	for i, t in ipairs(formatRules) do&lt;br /&gt;
		if num &amp;gt;= t.num then&lt;br /&gt;
			return string.format(t.rule, onesVal)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	error(&amp;#039;No format rule found for input &amp;#039; .. tostring(num))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>meta&gt;Mr. Stradivarius</name></author>
	</entry>
</feed>