<?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%3ANum</id>
	<title>テンプレート:Num - 版の履歴</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%3ANum"/>
	<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:Num&amp;action=history"/>
	<updated>2026-04-17T21:28:37Z</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:Num&amp;diff=29294&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:Num&amp;diff=29294&amp;oldid=prev"/>
		<updated>2015-03-14T03:15:30Z</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;&amp;lt;includeonly&amp;gt;{{#switch:{{#expr:{{{1}}}}}|INF=INF|-INF=-INF|{{#ifexpr:({{{1}}})=trunc({{{1}}})|{{#expr:trunc({{{1}}})}}|{{#switch:1|{{#expr:({{{1}}})&amp;gt;0}}={{num/1|({{{1}}})}}|{{#expr:({{{1}}})&amp;lt;0}}=-({{num/1|-({{{1}}})}})|0}}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
This template has as parameter an expression and produces a decimal number. If the expression produces a number of type integer, the template returns exactly that integer. If the expression produces a float, the template returns the result with a format that is accepted in an expression, and with an accuracy such the system would round it to the same float; thus if applied to a result of the template, the template returns the same.&lt;br /&gt;
&lt;br /&gt;
The format (in the examples shown with [[Template:Numfh]]) is ordinary decimal format, because scientific notation with a fixed normalisation in general does not allow a representation of the exact float, see [[Help:Calculation accuracy#Reconstruction of an internal number]]. &lt;br /&gt;
&lt;br /&gt;
For any float, 17 significant digits are enough to reconstruct it. Therefore we get for example:&lt;br /&gt;
&lt;br /&gt;
*{{xpsoc|numfh|(2-2^-52)*2^-20}}&lt;br /&gt;
*{{xpsoc|numfh|(2-2^-52)*2^10}}&lt;br /&gt;
*{{xpsoc|numfh|(2-2^-52)*2^20}}&lt;br /&gt;
&lt;br /&gt;
For numbers with a decimal point, trailing zeros are avoided:&lt;br /&gt;
*{{xpsoc|numfh|1e-3/8}}&lt;br /&gt;
*{{xpsoc|numfh|1e-10/8}}&lt;br /&gt;
*{{xpsoc|numfh|1e-20/8}}&lt;br /&gt;
*{{xpsoc|numfh|.00000000000000000000125}}&lt;br /&gt;
Large floats:&lt;br /&gt;
*{{xpsoc|numfh|3^39}}&lt;br /&gt;
Numbers of type integer have up to 19 digits:&lt;br /&gt;
*{{xpsoc|numfh|trunc3^trunc39}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Template:Numf]] - version with thousands separators; the output is suitable in expressions used as input of Template:Num etc., but not for &amp;lt;code&amp;gt;#expr&amp;lt;/code&amp;gt;.&lt;br /&gt;
*[[Template:Numfh]] - version with thousands separators producing also the type (integer or float), and the hexidecimal representation (exact in the case of float, approximate in the case of a large number of type integer); not suitable as input for further computations &lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematical templates|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nijcadmin</name></author>
	</entry>
</feed>