<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AVal%2Fdelimitnum</id>
	<title>Template:Val/delimitnum - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AVal%2Fdelimitnum"/>
	<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:Val/delimitnum&amp;action=history"/>
	<updated>2026-08-10T07:42:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.freecapitalists.org/index.php?title=Template:Val/delimitnum&amp;diff=15191&amp;oldid=prev</id>
		<title>John James: Created page with &quot;&lt;includeonly&gt;&lt;!-- --&gt;{{#ifexpr:({{{1|0}}}1)=({{{1|0}}})|&lt;!-- Test loss of precision by appending a fixed digit &quot;1&quot;   --&gt;{{FormattingError|Too Many Digits|nocategory={{{nocategory...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:Val/delimitnum&amp;diff=15191&amp;oldid=prev"/>
		<updated>2011-05-06T23:40:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;includeonly&amp;gt;&amp;lt;!-- --&amp;gt;{{#ifexpr:({{{1|0}}}1)=({{{1|0}}})|&amp;lt;!-- Test loss of precision by appending a fixed digit &amp;quot;1&amp;quot;   --&amp;gt;{{FormattingError|Too Many Digits|nocategory={{{nocategory...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#ifexpr:({{{1|0}}}1)=({{{1|0}}})|&amp;lt;!-- Test loss of precision by appending a fixed digit &amp;quot;1&amp;quot;&lt;br /&gt;
  --&amp;gt;{{FormattingError|Too Many Digits|nocategory={{{nocategory|}}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;|&amp;lt;!-- No loss of precision, can display this number&lt;br /&gt;
  --&amp;gt;{{#ifexpr:{{{1|0}}}&amp;lt;0|&amp;amp;minus;}}&amp;lt;!-- Output the mathematical minus sign (not the minus-hypen) if negative&lt;br /&gt;
  --&amp;gt;{{#ifexpr:abs({{{1|0}}}1)&amp;gt;10*abs({{{1|0}}})|&amp;lt;!-- Number is an integer (no dot): appening a non-zero digit multiplies it by more than 10&lt;br /&gt;
    --&amp;gt;{{formatnum:{{#expr:abs({{{1|0}}})}}}}&amp;lt;!-- Format the integer using locale&amp;#039;s separator for grouping digits&lt;br /&gt;
  --&amp;gt;|&amp;lt;!-- Number is not an integer (at least contains a dot)&lt;br /&gt;
    --&amp;gt;{{formatnum:{{#expr:trunc(abs({{{1|0}}}))}}.}}&amp;lt;!-- Format the integer part using locale&amp;#039;s separator for grouping digits, followed by the locale&amp;#039;s separator before fractional decimals&lt;br /&gt;
    --&amp;gt;{{val/delimitnum/fraction&amp;lt;!--&lt;br /&gt;
      --&amp;gt;|{{#expr:abs({{{1|0}}}1)-trunc(abs({{{1|0}}}1))}}&amp;lt;!-- The fractional part (appended with an extra digit 1 to avoid roundoff error on last displayed digit)&lt;br /&gt;
      --&amp;gt;|{{#expr:(-ln(abs({{{1|0}}}1)-abs({{{1|0}}}))/ln10round 0)-1}}&amp;lt;!-- The number of decimals to display (the difference of absolute values is the value of the appended digit 1, its log10 gives its position)&lt;br /&gt;
      --&amp;gt;|nocategory={{{nocategory|}}}&amp;lt;!-- category if formatting error (too many digits)&lt;br /&gt;
    --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{documentation}}&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>John James</name></author>
	</entry>
</feed>