<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nars2000.org/index.php?action=history&amp;feed=atom&amp;title=Examples%2FRoman</id>
	<title>Examples/Roman - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nars2000.org/index.php?action=history&amp;feed=atom&amp;title=Examples%2FRoman"/>
	<link rel="alternate" type="text/html" href="https://wiki.nars2000.org/index.php?title=Examples/Roman&amp;action=history"/>
	<updated>2026-05-08T09:27:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.7</generator>
	<entry>
		<id>https://wiki.nars2000.org/index.php?title=Examples/Roman&amp;diff=2019&amp;oldid=prev</id>
		<title>Paul Robinson at 12:12, 18 March 2013</title>
		<link rel="alternate" type="text/html" href="https://wiki.nars2000.org/index.php?title=Examples/Roman&amp;diff=2019&amp;oldid=prev"/>
		<updated>2013-03-18T12:12:04Z</updated>

		<summary type="html">&lt;p&gt;&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 08:12, 18 March 2013&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;:{goto} [[Examples]] - Go back to examples&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;:{goto} [[Examples]] - Go back to examples&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;The following function takes a decimal number and returns the equivalent in roman numerals. The comments to the right of the {lamp} symbol are for edification but are not necessary to use this function.&amp;lt;br/&amp;gt;&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;The following function takes a decimal number and returns the equivalent in roman numerals. The comments to the right of the {lamp} symbol are for edification but are not necessary to use &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this function. This code is very simple in order to demonstrate the various operators in APL, and is not necessarily the most efficient way to implement &lt;/ins&gt;this function.&amp;lt;br/&amp;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;div&gt;&amp;lt;code&amp;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;&amp;lt;code&amp;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;div&gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;⎕vr &amp;#039;roman&amp;#039; {lamp} System function to list the contents of a function&amp;lt;br/&amp;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;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;⎕vr &amp;#039;roman&amp;#039; {lamp} System function to list the contents of a function&amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Paul Robinson</name></author>
	</entry>
	<entry>
		<id>https://wiki.nars2000.org/index.php?title=Examples/Roman&amp;diff=2018&amp;oldid=prev</id>
		<title>Paul Robinson: Created page with &quot;:{goto} Examples - Go back to examples  The following function takes a decimal number and returns the equivalent in roman numerals. The comments to the right of the {lamp}...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nars2000.org/index.php?title=Examples/Roman&amp;diff=2018&amp;oldid=prev"/>
		<updated>2013-03-18T12:07:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;:{goto} &lt;a href=&quot;/index.php?title=Examples&quot; title=&quot;Examples&quot;&gt;Examples&lt;/a&gt; - Go back to examples  The following function takes a decimal number and returns the equivalent in roman numerals. The comments to the right of the {lamp}...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;:{goto} [[Examples]] - Go back to examples&lt;br /&gt;
&lt;br /&gt;
The following function takes a decimal number and returns the equivalent in roman numerals. The comments to the right of the {lamp} symbol are for edification but are not necessary to use this function.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;⎕vr &amp;#039;roman&amp;#039; {lamp} System function to list the contents of a function&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;∇ result ← roman value {lamp} &amp;#039;&amp;#039;&amp;#039;result&amp;#039;&amp;#039;&amp;#039; is the output of the function; &amp;#039;&amp;#039;&amp;#039;value&amp;#039;&amp;#039;&amp;#039; is the number supplied &amp;lt;br/&amp;gt;&lt;br /&gt;
[1]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;result ← &amp;amp;#39;&amp;#039; {lamp} set result to null to prevent VALUE ERROR&amp;lt;br/&amp;gt;&lt;br /&gt;
[2]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;M: →(value&amp;lt;1000)/CM  {lamp} if the value is less than 1000, go to label CM&amp;lt;br/&amp;gt;&lt;br /&gt;
[3]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;result ← result,&amp;#039;m&amp;#039; {lamp} for each 1000, tack an &amp;#039;m&amp;#039; onto result and reduce value by 1000&amp;lt;br/&amp;gt;&lt;br /&gt;
[4]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;value ←value-1000&amp;lt;br/&amp;gt;&lt;br /&gt;
[5]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;→M {lamp} go back to label M &amp;lt;br/&amp;gt;&lt;br /&gt;
[6]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;CM: →(value&amp;lt;900)/D  {lamp} if the value is less than 900, go to label D&amp;lt;br/&amp;gt;&lt;br /&gt;
[7]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;result ← result,&amp;#039;cm&amp;#039; {lamp} tack a &amp;#039;cm&amp;#039; on result and reduce value by 900&amp;lt;br/&amp;gt;&lt;br /&gt;
[8]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;value ←value-900&amp;lt;br/&amp;gt;&lt;br /&gt;
[9]&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;D:  →(value&amp;lt;500)/CD   {lamp} if the value is less than 500, go to label CD&amp;lt;br/&amp;gt;&lt;br /&gt;
[10]&amp;amp;nbsp;           result ← result,&amp;#039;d&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[11]&amp;amp;nbsp;           value ←value-500&amp;lt;br/&amp;gt;&lt;br /&gt;
[12]&amp;amp;nbsp;           CD: →(value&amp;lt;400)/C   {lamp} if the value is less than 400, go to label C&amp;lt;br/&amp;gt;&lt;br /&gt;
[13]&amp;amp;nbsp;           result ← result,&amp;#039;cd&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[14]&amp;amp;nbsp;           value ←value-500&amp;lt;br/&amp;gt;&lt;br /&gt;
[15]&amp;amp;nbsp;           C: →(value&amp;lt;100)/XC   {lamp} if the value is less than 100, go to label XC&amp;lt;br/&amp;gt;&lt;br /&gt;
[16]&amp;amp;nbsp;           result ← result,&amp;#039;c&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[17]&amp;amp;nbsp;           value ←value-100&amp;lt;br/&amp;gt;&lt;br /&gt;
[18]&amp;amp;nbsp;           →C&amp;lt;br/&amp;gt;&lt;br /&gt;
[19]&amp;amp;nbsp;           XC: →(value&amp;lt;90)/L   {lamp} if the value is less than 90, go to label L&amp;lt;br/&amp;gt;&lt;br /&gt;
[20]&amp;amp;nbsp;           result ← result,&amp;#039;xc&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[21]&amp;amp;nbsp;           value ←value-90&amp;lt;br/&amp;gt;&lt;br /&gt;
[22]&amp;amp;nbsp;           L:  →(value&amp;lt;50)/XL   {lamp} if the value is less than 50, go to label XL&amp;lt;br/&amp;gt;&lt;br /&gt;
[23]&amp;amp;nbsp;           result ← result,&amp;#039;l&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[24]&amp;amp;nbsp;           value ←value-50&amp;lt;br/&amp;gt;&lt;br /&gt;
[25]&amp;amp;nbsp;           XL:  →(value&amp;lt;40)/X   {lamp} if the value is less than 40, go to label X&amp;lt;br/&amp;gt;&lt;br /&gt;
[26]&amp;amp;nbsp;           result ← result,&amp;#039;xl&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[27]&amp;amp;nbsp;           value ←value-40&amp;lt;br/&amp;gt;&lt;br /&gt;
[28]&amp;amp;nbsp;           X: →(value&amp;lt;10)/IX   {lamp} if the value is less than 10, go to label IX&amp;lt;br/&amp;gt;&lt;br /&gt;
[29]&amp;amp;nbsp;           result ← result,&amp;#039;x&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[30]&amp;amp;nbsp;           value ←value-10&amp;lt;br/&amp;gt;&lt;br /&gt;
[31]&amp;amp;nbsp;           →X&amp;lt;br/&amp;gt;&lt;br /&gt;
[32]&amp;amp;nbsp;           IX: →(value&amp;lt;9)/V   {lamp} if the value is less than 9, go to label V&amp;lt;br/&amp;gt;&lt;br /&gt;
[33]&amp;amp;nbsp;           result ← result,&amp;#039;ix&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[34]&amp;amp;nbsp;           value ←value-9&amp;lt;br/&amp;gt;&lt;br /&gt;
[35]&amp;amp;nbsp;           V: →(value&amp;lt;5)/IV   {lamp} if the value is less than 5, go to label IV&amp;lt;br/&amp;gt;&lt;br /&gt;
[36]&amp;amp;nbsp;           result ← result,&amp;#039;v&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[37]&amp;amp;nbsp;           value ←value-5&amp;lt;br/&amp;gt;&lt;br /&gt;
[38]&amp;amp;nbsp;           IV: →(value&amp;lt;4)/I   {lamp} if the value is less than 4, go to label I&amp;lt;br/&amp;gt;&lt;br /&gt;
[39]&amp;amp;nbsp;           result ← result,&amp;#039;iv&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[40]&amp;amp;nbsp;           value ←value-4&amp;lt;br/&amp;gt;&lt;br /&gt;
[41]&amp;amp;nbsp;           I: →(value&amp;lt;1)/0   {lamp} if the value is less than 1, go to 0, which exits the function&amp;lt;br/&amp;gt;&lt;br /&gt;
[42]&amp;amp;nbsp;           result ← result,&amp;#039;i&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[43]&amp;amp;nbsp;           value ←value-1&amp;lt;br/&amp;gt;&lt;br /&gt;
[44]&amp;amp;nbsp;           →I&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;∇ 2013 3 18 11 42 9 262 (UTC)   {lamp} this is when the function was last edited&amp;lt;br/&amp;gt; &lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Article footer}}&lt;/div&gt;</summary>
		<author><name>Paul Robinson</name></author>
	</entry>
</feed>