<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://history.sydlexia.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ADec_to_frac%2Fdoc</id>
	<title>Template:Dec to frac/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://history.sydlexia.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ADec_to_frac%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://history.sydlexia.com/index.php?title=Template:Dec_to_frac/doc&amp;action=history"/>
	<updated>2026-05-08T21:12:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.2</generator>
	<entry>
		<id>http://history.sydlexia.com/index.php?title=Template:Dec_to_frac/doc&amp;diff=212&amp;oldid=prev</id>
		<title>SydLexia: Protected &quot;Template:Dec to frac/doc&quot; [edit=sysop:move=sysop]</title>
		<link rel="alternate" type="text/html" href="http://history.sydlexia.com/index.php?title=Template:Dec_to_frac/doc&amp;diff=212&amp;oldid=prev"/>
		<updated>2007-12-09T03:20:47Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=Template:Dec_to_frac/doc&quot; title=&quot;Template:Dec to frac/doc&quot;&gt;Template:Dec to frac/doc&lt;/a&gt;&amp;quot; [edit=sysop:move=sysop]&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:20, 9 December 2007&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>SydLexia</name></author>
		
	</entry>
	<entry>
		<id>http://history.sydlexia.com/index.php?title=Template:Dec_to_frac/doc&amp;diff=211&amp;oldid=prev</id>
		<title>SydLexia: New page: &lt;noinclude&gt;:''This is the documentation of Template:dec to frac.''&lt;/noinclude&gt;  {{Intricate template}}  This template converts decimal fractions to vulgar fractions.  It takes two para...</title>
		<link rel="alternate" type="text/html" href="http://history.sydlexia.com/index.php?title=Template:Dec_to_frac/doc&amp;diff=211&amp;oldid=prev"/>
		<updated>2007-12-09T03:20:35Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;lt;noinclude&amp;gt;:&amp;#039;&amp;#039;This is the documentation of &lt;a href=&quot;/index.php?title=Template:Dec_to_frac&quot; title=&quot;Template:Dec to frac&quot;&gt;Template:dec to frac&lt;/a&gt;.&amp;#039;&amp;#039;&amp;lt;/noinclude&amp;gt;  {{Intricate template}}  This template converts decimal fractions to vulgar fractions.  It takes two para...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;:''This is the documentation of [[Template:dec to frac]].''&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Intricate template}}&lt;br /&gt;
&lt;br /&gt;
This template converts decimal fractions to vulgar fractions.  It takes two parameters:&lt;br /&gt;
*fraction to be converted;&lt;br /&gt;
*resulting vulgar fraction's denominator&lt;br /&gt;
&lt;br /&gt;
If the decimal fraction includes an integer part, it is retained in the output.  If the resulting vulgar fraction can be resolved in lower terms than specified denominator, it is resolved, but due to algorithm limitation fractions with relatively large nominators/denominators may be left unresolved.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{dec to frac|3.6742|16}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;rarr; {{dec to frac|3.6742|16}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{dec to frac|0.375|16}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;rarr; {{dec to frac|0.375|16}}&lt;br /&gt;
&lt;br /&gt;
Sometimes it is impossible to convert a decimal to a vulgar fraction with requested denominator, in which cases the output is simply an input rounded up:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{dec to frac|3.99|8}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;rarr; {{dec to frac|3.99|8}}&lt;br /&gt;
...or down:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{dec to frac|3.1|2}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;rarr; {{dec to frac|3.1|2}}&lt;br /&gt;
&lt;br /&gt;
When that is unacceptable, increase the denominator:&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{dec to frac|3.99|100}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;rarr; {{dec to frac|3.99|100}}&lt;br /&gt;
*&amp;lt;nowiki&amp;gt;{{dec to frac|3.1|10}}&amp;lt;/nowiki&amp;gt;&amp;amp;nbsp;&amp;amp;rarr; {{dec to frac|3.1|10}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Mathematical function templates|Dec to frac]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>SydLexia</name></author>
		
	</entry>
</feed>