<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://bsd.neuroinf.jp/w/index.php?action=history&amp;feed=atom&amp;title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%3AFormatnum%2F1%2Fdoc</id>
	<title>テンプレート:Formatnum/1/doc - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://bsd.neuroinf.jp/w/index.php?action=history&amp;feed=atom&amp;title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88%3AFormatnum%2F1%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://bsd.neuroinf.jp/w/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Formatnum/1/doc&amp;action=history"/>
	<updated>2026-04-17T03:30:14Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://bsd.neuroinf.jp/w/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Formatnum/1/doc&amp;diff=29552&amp;oldid=prev</id>
		<title>Nijcadmin: 1版</title>
		<link rel="alternate" type="text/html" href="https://bsd.neuroinf.jp/w/index.php?title=%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC%E3%83%BC%E3%83%88:Formatnum/1/doc&amp;diff=29552&amp;oldid=prev"/>
		<updated>2015-03-14T03:15:58Z</updated>

		<summary type="html">&lt;p&gt;1版&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
This template is the core template of [[Template:Formatnum]]. That template handles the empty string and invalid numbers, and the possible minus sign, so that this template needs to handle valid non-negative numbers only. Also Formatnum applies rounding according to parameter &amp;#039;&amp;#039;prec&amp;#039;&amp;#039;, if defined, and increases the absolute value so that this template can truncate after a total of 16 digits, and supplies this template with the log to the base 10, rounded down, of this final number.&lt;br /&gt;
&lt;br /&gt;
{{tdoc&lt;br /&gt;
|1=1&lt;br /&gt;
|1d=non-negative number&lt;br /&gt;
|1stat=required&lt;br /&gt;
|2=2&lt;br /&gt;
|2d=language code&lt;br /&gt;
|2def=value of &amp;lt;nowiki&amp;gt;{{int:Lang}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|3=sep&lt;br /&gt;
|3d=set to any non-empty value to produce a result without thousands separators&lt;br /&gt;
|4=prec&lt;br /&gt;
|4d=number of digits after the decimal point to show&lt;br /&gt;
|4def=if empty or undefined: 0&lt;br /&gt;
|5=oom&lt;br /&gt;
|5d=log to the base 10, rounded down, of the number.&lt;br /&gt;
|5def=&lt;br /&gt;
|i18n-method=-&lt;br /&gt;
|i18n-desc=&lt;br /&gt;
|seealso=&lt;br /&gt;
|relieson=&amp;lt;nowiki/&amp;gt;&lt;br /&gt;
*[[Template:FormatnumDigit]]&lt;br /&gt;
*[[Template:FormatnumSigns]]&lt;br /&gt;
|examples=&amp;lt;nowiki/&amp;gt;&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.456789789}}&lt;br /&gt;
*{{formatnum/1|(abs(1234567890.456789789)+5*10^(-16+9))||sep=|prec=|oom=9}}&lt;br /&gt;
*{{xpsoc|#expr:(abs(.456789789)+5*10^(-16+9))}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.99999}}&lt;br /&gt;
*{{xpsoc|formatnum/1|(9999999999.99999+5*10^(-16+9))|n1=oom|v1=9}}&lt;br /&gt;
*{{xpsoc|#expr:(abs(.99999)+5*10^(-16+9))}}&lt;br /&gt;
*{{xpsoc|oom|{{#expr:(abs(9999999999.99999)+5*10^(-16+9))}}}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.999999}}&lt;br /&gt;
*{{xpsoc|formatnum/1|(9999999999.999999+5*10^(-16+9))|n1=oom|v1=9}}&lt;br /&gt;
*{{xpsoc|#expr:(abs(.999999)+5*10^(-16+9))}}&lt;br /&gt;
*{{xpsoc|oom|(abs(9999999999.999999)+5*10^(-16+9))}}&lt;br /&gt;
Compare:&lt;br /&gt;
**&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{oom|{{#expr:(abs(9999999999.999999)+5*10^(-16+9))}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{oom|{{#expr:(abs(9999999999.999999)+5*10^(-16+9))}}}}&lt;br /&gt;
**{{xpsoc|formatnum/1|(9999999999.999999+5*10^(-16+9))|n1=oom|v1=10}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.9999999}}&lt;br /&gt;
*{{xpsoc|formatnum/1|(9999999999.9999999+5*10^(-16+9))|n1=oom|v1=10}}&lt;br /&gt;
*{{xpsoc|#expr:(abs(.9999999)+5*10^(-16+9))}}&lt;br /&gt;
*{{xpsoc|oom|(abs(9999999999.9999999)+5*10^(-16+9))}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|123456789012.12}}&lt;br /&gt;
*{{xpsoc|formatnum|12345678901.12}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|234567890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|34567890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|4567890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|567890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|67890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|7890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|890.12}}&lt;br /&gt;
*{{xpsoc|formatnum|90.12}}&lt;br /&gt;
*{{xpsoc|formatnum|4.12}}&lt;br /&gt;
*{{xpsoc|formatnum|4.1}}&lt;br /&gt;
*{{xpsoc|formatnum|4}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.12345}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.123456}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|1234567890|n1=prec|v1=3}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.1|n1=prec|v1=3}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.12|n1=prec|v1=3}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.123|n1=prec|v1=3}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.1234|n1=prec|v1=3}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.12345|n1=prec|v1=3}}&lt;br /&gt;
*{{xpsoc|formatnum|1234567890.123456|n1=prec|v1=3}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|0.000123456|n1=prec|v1=3}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.9999}}&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.99999}}&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.999999}}&lt;br /&gt;
*{{xpsoc|formatnum|9999999999.9999999}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|-6.7e-8}}&lt;br /&gt;
*{{xpsoc|formatnum|0}}&lt;br /&gt;
*{{xpsoc|formatnum|0|bn}}&lt;br /&gt;
*{{xpsoc|formatnum|6.7e-18}}&lt;br /&gt;
*{{xpsoc|formatnum|6.7e-8}}&lt;br /&gt;
*{{xpsoc|formatnum|6.7e8}}&lt;br /&gt;
*{{xpsoc|formatnum|1.234567890123456e17}}&lt;br /&gt;
*{{xpsoc|formatnum|6.7e17}}&lt;br /&gt;
*{{xpsoc|formatnum|1.234567890123456e18}}&lt;br /&gt;
*{{xpsoc|formatnum|6.7e18}}&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|formatnum|e8}} (not a valid number, returns the input)&lt;br /&gt;
*{{xpsoc|formatnum}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Mathematical templates]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nijcadmin</name></author>
	</entry>
</feed>